mirror of
https://github.com/python/cpython
synced 2026-09-28 03:33:18 +03:00
gh-118418: Deprecate failing to pass a value to the *type_params* parameter of some private typing APIs (#118695)
This commit is contained in:
parent
6f768b71ba
commit
0f8a07d158
3 changed files with 61 additions and 11 deletions
|
|
@ -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.)
|
||||
Loading…
Add table
Add a link
Reference in a new issue