Skip to content

Commit de1c090

Browse files
[3.12] Typing docs: fix typo in annotating tuples comment (GH-106048) (#106049)
Typing docs: fix typo in annotating tuples comment (GH-106048) (cherry picked from commit 8ef0ee4) Co-authored-by: Eamon Tracey <[email protected]>
1 parent 7d6ee29 commit de1c090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ the container will be of the same type. For example::
362362
# Type checker error: ``list`` only accepts a single type argument:
363363
y: list[int, str] = [1, 'foo']
364364

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

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

0 commit comments

Comments
 (0)