diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-25 16:30:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 16:30:08 (GMT) |
commit | f4f8a714b5fe0e83d63c54cdf39e8d8920047e6c (patch) | |
tree | fb85b7735edb71983732d494c4dce61690d3773c /Misc/NEWS.d/next | |
parent | 899dfbaf0e62c71885eced4747d7d4c93b7bbd4f (diff) | |
download | cpython-f4f8a714b5fe0e83d63c54cdf39e8d8920047e6c.zip cpython-f4f8a714b5fe0e83d63c54cdf39e8d8920047e6c.tar.gz cpython-f4f8a714b5fe0e83d63c54cdf39e8d8920047e6c.tar.bz2 |
[3.13] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121003)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-08-15-46-35.gh-issue-114053.Ub2XgJ.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-08-15-46-35.gh-issue-114053.Ub2XgJ.rst b/Misc/NEWS.d/next/Library/2024-06-08-15-46-35.gh-issue-114053.Ub2XgJ.rst new file mode 100644 index 0000000..8aea591 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-08-15-46-35.gh-issue-114053.Ub2XgJ.rst @@ -0,0 +1,4 @@ +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. |