cpython/Misc/NEWS.d/next/Library/2024-06-08-15-46-35.gh-issu...

5 lines
260 B
ReStructuredText

Fix edge-case bug where :func:`typing.get_type_hints` would produce
incorrect results if type parameters in a class scope were overridden by
assignments in a class scope and ``from __future__ import annotations``
semantics were enabled. Patch by Alex Waygood.