Skip to content

Commit c7df3c3

Browse files
committed
Addressed code review feedback from Jelle
1 parent 81391f4 commit c7df3c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/spec/protocol.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ shorthand with ``Generic[T, S, ...]`` or to mix it with the new
284284

285285
When using the generics syntax introduced in Python 3.12, the variance of
286286
type variables is inferred. When using the pre-3.12 generics syntax, variance
287-
must be specified. Type checkers will warn if the declared variance does not
288-
match the protocol definition. Examples::
287+
must be specified (unless ``infer_variance=True`` is used). Type checkers will
288+
warn if the declared variance does not match the protocol definition. Examples::
289289

290290
T = TypeVar('T')
291291
T_co = TypeVar('T_co', covariant=True)

0 commit comments

Comments
 (0)