Skip to content

Commit 890bd0e

Browse files
[3.14] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) (#153824)
(cherry picked from commit 2e94f14) Co-authored-by: Kai (Kazuya Ito) <kazya.ito.dream@gmail.com>
1 parent f5c4880 commit 890bd0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ without the dedicated syntax, as documented below.
20992099

21002100
Support for default values was added.
21012101

2102-
.. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False, default=typing.NoDefault)
2102+
.. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False, infer_variance=False, default=typing.NoDefault)
21032103

21042104
Parameter specification variable. A specialized version of
21052105
:ref:`type variables <typevar>`.

0 commit comments

Comments
 (0)