summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-22 15:16:48 (GMT)
committerGitHub <noreply@github.com>2020-11-22 15:16:48 (GMT)
commit41d1ebb33efb85cf530972da8172460cc076ff61 (patch)
tree2dd19e42960137060c833647149a3f9f5d28aed5
parente8b1c038b14b5fc8120aab62c9bf5fb840274cb6 (diff)
downloadcpython-41d1ebb33efb85cf530972da8172460cc076ff61.zip
cpython-41d1ebb33efb85cf530972da8172460cc076ff61.tar.gz
cpython-41d1ebb33efb85cf530972da8172460cc076ff61.tar.bz2
Doc: fix typo in typing.Type docs (GH-23460)
(cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647) Co-authored-by: John Belmonte <john@neggie.net>
-rw-r--r--Doc/library/typing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 28c607e..af2cafb 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -622,7 +622,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
:ref:`type variables <generics>`, and unions of any of these types.
For example::
- def new_non_team_user(user_class: Type[Union[BaseUser, ProUser]]): ...
+ def new_non_team_user(user_class: Type[Union[BasicUser, ProUser]]): ...
``Type[Any]`` is equivalent to ``Type`` which in turn is equivalent
to ``type``, which is the root of Python's metaclass hierarchy.