[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces
Jarry Shaw
report at bugs.python.org
Tue Apr 20 11:23:59 EDT 2021
Jarry Shaw <jarryshaw at icloud.com> added the comment:
> as discussed in https://bugs.python.org/issue41887
After some additional thoughts, I am thinking that changing the behaviour of ``compile`` in ``'eval'`` mode directly might be a better idea, for consistency all over the builtin functions.
Especially that it is a bit complex to decide if ``compile`` is called in ``'eval'`` mode all over the code base which may need to patch with ``lstrip`` sanitisation.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43893>
_______________________________________
More information about the Python-bugs-list
mailing list