[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: Duplicate: #38605 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Why is it still not automatically inside python 3.11.0a1? Probably because this is the .0a1 version, and making it mandatory just hasn't been done yet. The developers are only human and can't do everything instantly. -- nosy: +steven.daprano

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: test case: >>> a: A = 'test' Traceback (most recent call last): File "", line 1, in NameError: name 'A' is not defined. Did you mean: 'a'? -- ___ Python tracker __

[issue45499] from __future__ import annotations is not mandatory in 3.11.0a1+

2021-10-16 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : >>> import sys >>> import __future__ >>> __future__.annotations _Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 16777216) >>> sys.version_info sys.version_info(major=3, minor=11, micro=0, releaselevel='alpha', serial=1) >>> sys.version_info > __