mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-44468: Never skip base classes in typing.get_type_hints(), even with invalid .__module__. (GH-26862)
This commit is contained in:
parent
521ba8892e
commit
7569c0fe91
3 changed files with 21 additions and 11 deletions
|
|
@ -0,0 +1,2 @@
|
|||
:func:`typing.get_type_hints` now finds annotations in classes and base classes
|
||||
with unexpected ``__module__``. Previously, it skipped those MRO elements.
|
||||
Loading…
Add table
Add a link
Reference in a new issue