Skip to content

Commit 8ef0ee4

Browse files
authored
Typing docs: fix typo in annotating tuples comment (#106048)
1 parent d8ca5a1 commit 8ef0ee4

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)