[issue46552] typing: get_type_hints can't handle stringified annotations with leading spaces

Eric V. Smith report at bugs.python.org
Thu Jan 27 15:28:28 EST 2022


Eric V. Smith <eric at trueblade.com> added the comment:

The dataclasses tests were in fact just added for completeness. I'd be okay with changing dataclasses to reject leading spaces.

----------

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


More information about the Python-bugs-list mailing list