https://github.com/python/cpython/commit/2e94f14310e8ab62f41dd01276f2c69cb3d36da2
commit: 2e94f14310e8ab62f41dd01276f2c69cb3d36da2
branch: main
author: Kai (Kazuya Ito) <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-05-03T23:08:38Z
summary:

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

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 17cf57dd00b4bd..f45a22addbb56a 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -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>`.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to