Typing docs: fix typo in annotating tuples comment (#106048)

This commit is contained in:
Eamon Tracey 2023-06-23 16:34:05 -04:00 committed by GitHub
parent d8ca5a11bc
commit 8ef0ee4ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,8 +362,8 @@ the container will be of the same type. For example::
# Type checker error: ``list`` only accepts a single type argument:
y: list[int, str] = [1, 'foo']
# Type checker will infer that all keys in ``y`` are meant to be strings,
# and that all values in ``y`` are meant to be either strings or ints
# Type checker will infer that all keys in ``z`` are meant to be strings,
# and that all values in ``z`` are meant to be either strings or ints
z: Mapping[str, str | int] = {}
:class:`list` only accepts one type argument, so a type checker would emit an