Skip to content

Commit 05d06e5

Browse files
[3.11] Typing docs: fix typo in annotating tuples comment (GH-106048) (#106050)
Typing docs: fix typo in annotating tuples comment (GH-106048) (cherry picked from commit 8ef0ee4) Co-authored-by: Eamon Tracey <[email protected]>
1 parent 26d87fd commit 05d06e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ the container will be of the same type. For example::
340340
# Type checker error: ``list`` only accepts a single type argument:
341341
y: list[int, str] = [1, 'foo']
342342

343-
# Type checker will infer that all keys in ``y`` are meant to be strings,
344-
# and that all values in ``y`` are meant to be either strings or ints
343+
# Type checker will infer that all keys in ``z`` are meant to be strings,
344+
# and that all values in ``z`` are meant to be either strings or ints
345345
z: Mapping[str, str | int] = {}
346346

347347
:class:`list` only accepts one type argument, so a type checker would emit an

0 commit comments

Comments
 (0)