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 larry
Recipients eric.smith, gvanrossum, larry
Date 2021-04-12.17:57:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618250270.47.0.0448890018374.issue43817@roundup.psfhosted.org>
In-reply-to
Content
To be honest, I'm not 100% sure.  But I observe that typing.get_type_hints() is about fifty lines of code, and very few of them are the opinionated lines I want to avoid.

Some things typing.get_type_hints() seems to do for you:
* Work around the "classes inherit annotations" design bug.
* Unwrap wrapped functions.
* "Return empty annotations for something that _could_ have them."
History
Date User Action Args
2021-04-12 17:57:50larrysetrecipients: + larry, gvanrossum, eric.smith
2021-04-12 17:57:50larrysetmessageid: <1618250270.47.0.0448890018374.issue43817@roundup.psfhosted.org>
2021-04-12 17:57:50larrylinkissue43817 messages
2021-04-12 17:57:50larrycreate