Message 411228 - Python tracker

Message411228

Author JelleZijlstra
Recipients JelleZijlstra, eric.smith, tkomiya, uriyyo
Date 2022-01-22.03:31:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642822278.04.0.712486366892.issue44799@roundup.psfhosted.org>
In-reply-to
Content
I think this should be fixed in typing.py instead. get_type_hints() should be less strict about what it accepts as a type, so users are free to use annotations in innovative ways.

Static type checkers should have the job of enforcing that type annotations are valid types.
History
Date User Action Args
2022-01-22 03:31:18JelleZijlstrasetrecipients: + JelleZijlstra, eric.smith, uriyyo, tkomiya
2022-01-22 03:31:18JelleZijlstrasetmessageid: <1642822278.04.0.712486366892.issue44799@roundup.psfhosted.org>
2022-01-22 03:31:18JelleZijlstralinkissue44799 messages
2022-01-22 03:31:17JelleZijlstracreate