diff options
author | Eamon Tracey <66919574+EamonTracey@users.noreply.github.com> | 2023-06-23 20:34:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 20:34:05 (GMT) |
commit | 8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5 (patch) | |
tree | 4ffaa384cecdaad8bcad03ae78b34763c6742472 /Doc/library | |
parent | d8ca5a11bc55e2a69cab4f8795d0a5aa6932a41b (diff) | |
download | cpython-8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5.zip cpython-8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5.tar.gz cpython-8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5.tar.bz2 |
Typing docs: fix typo in annotating tuples comment (#106048)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 7458fa5..9771ba0 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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 |