diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-05-07 11:12:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 11:12:28 (GMT) |
commit | 0f8a07d158ba0a0dfd3584d8195f30dd16738555 (patch) | |
tree | c646b685c4e05550e499975e732b9abfe9db7cca /Misc/NEWS.d | |
parent | 6f768b71bab837c6c4aac4d3ddd251e55025fe0b (diff) | |
download | cpython-0f8a07d158ba0a0dfd3584d8195f30dd16738555.zip cpython-0f8a07d158ba0a0dfd3584d8195f30dd16738555.tar.gz cpython-0f8a07d158ba0a0dfd3584d8195f30dd16738555.tar.bz2 |
gh-118418: Deprecate failing to pass a value to the *type_params* parameter of some private `typing` APIs (#118695)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-05-07-11-23-11.gh-issue-118418.QPMdJm.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-05-07-11-23-11.gh-issue-118418.QPMdJm.rst b/Misc/NEWS.d/next/Library/2024-05-07-11-23-11.gh-issue-118418.QPMdJm.rst new file mode 100644 index 0000000..be371c5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-05-07-11-23-11.gh-issue-118418.QPMdJm.rst @@ -0,0 +1,6 @@ +A :exc:`DeprecationWarning` is now emitted if you fail to pass a value to +the new *type_params* parameter of ``typing._eval_type()`` or +``typing.ForwardRef._evaluate()``. (Using either of these private and +undocumented functions is discouraged to begin with, but failing to pass a +value to the ``type_params`` parameter may lead to incorrect behaviour on +Python 3.12 or newer.) |