[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

miss-islington report at bugs.python.org
Sat Jun 26 19:52:34 EDT 2021


miss-islington <mariatta.wijaya+miss-islington at gmail.com> added the comment:


New changeset 3df23b5199a4bb237a595cadca6c49d34ab2a56c by Miss Islington (bot) in branch '3.10':
[3.10] bpo-44468: Never skip base classes in `typing.get_type_hints()`, even with invalid `.__module__`. (GH-26862) (GH-26920)
https://github.com/python/cpython/commit/3df23b5199a4bb237a595cadca6c49d34ab2a56c


----------

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


More information about the Python-bugs-list mailing list