gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecation … · python/cpython@b725297 · GitHub
Skip to content

Commit b725297

Browse files
authored
gh-128661: Fix typing.evaluate_forward_ref not showing deprecation (#128663)
gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecataion
1 parent 43ac9f5 commit b725297

3 files changed

Lines changed: 49 additions & 1 deletion

File tree

Lib/test/test_typing.py

Lines changed: 46 additions & 0 deletions

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def evaluate_forward_ref(
10241024
owner=None,
10251025
globals=None,
10261026
locals=None,
1027-
type_params=None,
1027+
type_params=_sentinel,
10281028
format=annotationlib.Format.VALUE,
10291029
_recursive_guard=frozenset(),
10301030
):
Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)