bpo-44468: Never skip base classes in typing.get_type_hints(), even with invalid .__module__. (GH-26862)

This commit is contained in:
will-ca 2021-06-26 23:31:32 +00:00 committed by GitHub
parent 521ba8892e
commit 7569c0fe91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 11 deletions

View file

@ -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.