gh-145521: Add 'infer_variance' parameter to ParamSpec class (#145522)

This commit is contained in:
Kai (Kazuya Ito) 2026-05-04 08:08:38 +09:00 committed by GitHub
parent 4144062387
commit 2e94f14310
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>`.