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

5 lines
262 B
ReStructuredText

Fix erroneous :exc:`NameError` when calling :func:`inspect.get_annotations`
with ``eval_str=True``` on a class that made use of :pep:`695` type
parameters in a module that had ``from __future__ import annotations`` at
the top of the file. Patch by Alex Waygood.