This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kj
Recipients gvanrossum, kj, levkivskyi, tefra
Date 2021-04-13.10:05:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618308317.52.0.215023731806.issue43646@roundup.psfhosted.org>
In-reply-to
Content
@tefra, now that issue42904 has been solved, can you test your code again with 3.10.0a8? (it's not out yet, so you may have to pull the code from CPython's GitHub master branch and build CPython)

Running your code again, it seems to be fixed:

Python 3.10.0a7+
>>> from typing import get_type_hints, Optional
>>> from a import Root as RootA, Person as PersonA
>>> from b import Root as RootB, Person as PersonB
>>> roota_hints = get_type_hints(RootA)
>>> rootb_hints = get_type_hints(RootB)
>>> print(roota_hints)
{'a': typing.List[a.Person]}
>>> print(rootb_hints)
{'b': typing.List[b.Person]}

However, it's still around for 3.9 and below if I use string annotations in classes. There's some discussion in that issue about why it may not be backported though.
History
Date User Action Args
2021-04-13 10:05:17kjsetrecipients: + kj, gvanrossum, levkivskyi, tefra
2021-04-13 10:05:17kjsetmessageid: <1618308317.52.0.215023731806.issue43646@roundup.psfhosted.org>
2021-04-13 10:05:17kjlinkissue43646 messages
2021-04-13 10:05:17kjcreate