From 890bd0ed9130c8baa1e5a29fcfac266b1504889e Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 16 Jul 2026 19:50:00 -0700 Subject: [PATCH] [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) --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 14d76e7b4558..c1eba81a982a 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 `. -- 2.47.3