forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-118418: Deprecate failing to pass a value to the *type_param…
…s* parameter of some private `typing` APIs
- Loading branch information
1 parent
9762122
commit c416507
Showing
3 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Library/2024-05-07-11-23-11.gh-issue-118418.QPMdJm.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.) |