mirror of
https://github.com/python/cpython.git
synced 2026-05-04 09:31:02 +00:00
gh-145521: Add 'infer_variance' parameter to ParamSpec class (#145522)
This commit is contained in:
parent
4144062387
commit
2e94f14310
1 changed files with 1 additions and 1 deletions
|
|
@ -2156,7 +2156,7 @@ without the dedicated syntax, as documented below.
|
|||
Added support for the ``bound``, ``covariant``, ``contravariant``, and
|
||||
``infer_variance`` parameters.
|
||||
|
||||
.. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False, default=typing.NoDefault)
|
||||
.. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False, infer_variance=False, default=typing.NoDefault)
|
||||
|
||||
Parameter specification variable. A specialized version of
|
||||
:ref:`type variables <typevar>`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue