You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
from __future__ import annotations is not mandatory in 3.11.0a1+ #89662
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-10-17.05:34:30.026>created_at=<Date2021-10-17.04:50:55.818>labels= ['type-bug', 'expert-installation', '3.11']
title='from __future__ import annotations is not mandatory in 3.11.0a1+'updated_at=<Date2021-10-17.05:34:30.025>user='https://github.com/thatbirdguythatuknownot'
test case:
>>> a: A ='test'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'A' is not defined. Did you mean: 'a'?
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.
Activity
thatbirdguythatuknownot commentedon Oct 17, 2021
Why is it still not automatically inside python 3.11.0a1?
thatbirdguythatuknownot commentedon Oct 17, 2021
stevendaprano commentedon Oct 17, 2021
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.
stevendaprano commentedon Oct 17, 2021
Duplicate: bpo-38605