]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-145521: Add 'infer_variance' parameter to ParamSpec class (#145522)
authorKai (Kazuya Ito) <kazya.ito.dream@gmail.com>
Sun, 3 May 2026 23:08:38 +0000 (08:08 +0900)
committerGitHub <noreply@github.com>
Sun, 3 May 2026 23:08:38 +0000 (23:08 +0000)
Doc/library/typing.rst

index 17cf57dd00b4bda226986e0deacf99357e307599..f45a22addbb56a37c07c137584535bae18d8c67f 100644 (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>`.