Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ca5a1 commit 8ef0ee4Copy full SHA for 8ef0ee4
Doc/library/typing.rst
@@ -362,8 +362,8 @@ the container will be of the same type. For example::
362
# Type checker error: ``list`` only accepts a single type argument:
363
y: list[int, str] = [1, 'foo']
364
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
+ # 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
367
z: Mapping[str, str | int] = {}
368
369
:class:`list` only accepts one type argument, so a type checker would emit an
0 commit comments