https://github.com/python/cpython/commit/7a87bd61d608b6a159f853ffb6d76d70d68c64b7 commit: 7a87bd61d608b6a159f853ffb6d76d70d68c64b7 branch: 3.13 author: Jelle Zijlstra <[email protected]> committer: JelleZijlstra <[email protected]> date: 2026-07-17T02:52:52Z summary:
[3.13] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) (#153825) (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 b3cde1aca8f7e3..80fa97e04c624e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2051,7 +2051,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]
