]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128661: Remove DeprecationWarning in evaluate_forward_ref (#128930)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Thu, 3 Apr 2025 16:52:17 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Apr 2025 16:52:17 +0000 (09:52 -0700)
commit5518c2ae09cd8f135981f362dabd000d44d26cac
tree84760399bddd71d2bcf23a3592925248f448edd7
parent24decb05ddda445d96f45e2cd0b39497318c98d4
gh-128661: Remove DeprecationWarning in evaluate_forward_ref (#128930)

It doesn't make sense to use a deprecation for evaluate_forward_ref,
as it is a new function in Python 3.14 and doesn't have compatibility
guarantees.

I considered making it throw an error if type_params it not passed and
there is no owner. However, I think this is too unfriendly for users. The
case where this param is really needed is fairly esoteric and I don't think
this case is worth the pain of forcing users to write "type_params=()".
Doc/library/annotationlib.rst
Doc/library/typing.rst
Lib/test/test_typing.py
Lib/typing.py