We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d87fd commit 05d06e5Copy full SHA for 05d06e5
Doc/library/typing.rst
@@ -340,8 +340,8 @@ the container will be of the same type. For example::
340
# Type checker error: ``list`` only accepts a single type argument:
341
y: list[int, str] = [1, 'foo']
342
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
+ # 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
345
z: Mapping[str, str | int] = {}
346
347
:class:`list` only accepts one type argument, so a type checker would emit an
0 commit comments