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 BTaskaya
Recipients BTaskaya, barry, brett.cannon, eric.smith, gvanrossum, levkivskyi, lukasz.langa, vstinner
Date 2020-05-28.10:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590663075.23.0.995014572805.issue38605@roundup.psfhosted.org>
In-reply-to
Content
From now on, should typing.get_type_hints automatically resolve arguments too? An example would be this;

import typing
T = typing.TypeVar("T")
class Loop(typing.Generic[T]):
    subloop: typing.Final["Loop[int]"]
print(typing.get_type_hints(Loop))
>>> {'subloop': typing.Final[__main__.Loop[int]]}
If we run the same code under future annotations
>>> {'subloop': typing.Final[ForwardRef('Loop[int]')]}
History
Date User Action Args
2020-05-28 10:51:15BTaskayasetrecipients: + BTaskaya, gvanrossum, barry, brett.cannon, vstinner, eric.smith, lukasz.langa, levkivskyi
2020-05-28 10:51:15BTaskayasetmessageid: <1590663075.23.0.995014572805.issue38605@roundup.psfhosted.org>
2020-05-28 10:51:15BTaskayalinkissue38605 messages
2020-05-28 10:51:15BTaskayacreate