[issue41613] get_type_hints regression for 3.9 and 3.10
Batuhan Taskaya
report at bugs.python.org
Thu Oct 1 19:31:29 EDT 2020
Batuhan Taskaya <isidentical at gmail.com> added the comment:
Commit 3ff51d425ecd98b7ba5a12ca9f77eda73fbf9f53 set the __builtins__ to None in namedtuple's creation, but the problem is that it is causing harm when the point came to the point of getting type hints on typing.NamedTuple.__new__ (we had a test about it), I'm changing that test (in the PR 20434) to work directly with the namedtuple itself instead of __new__ (since the annotations get proxied).
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41613>
_______________________________________
More information about the Python-bugs-list
mailing list