https://github.com/python/cpython/commit/890bd0ed9130c8baa1e5a29fcfac266b1504889e
commit: 890bd0ed9130c8baa1e5a29fcfac266b1504889e
branch: 3.14
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-07-17T02:50:00Z
summary:

[3.14] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) 
(#153824)

(cherry picked from commit 2e94f14310e8ab62f41dd01276f2c69cb3d36da2)

Co-authored-by: Kai (Kazuya Ito) <[email protected]>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 14d76e7b4558aa..c1eba81a982abb 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2099,7 +2099,7 @@ without the dedicated syntax, as documented below.
 
       Support for default values was added.
 
-.. 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