[issue46195] Annotated and Optional get_type_hints buggy interaction

Guido van Rossum report at bugs.python.org
Wed Dec 29 14:54:58 EST 2021


Guido van Rossum <guido at python.org> added the comment:

Could you try with 3.10 and the stdlib typing.Annotated please? There might
be changes (in the past a default of None automatically caused an Optional
to be added, but we changed our minds.--
--Guido (mobile)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46195>
_______________________________________


More information about the Python-bugs-list mailing list