[Python-checkins] Doc: fix typo in typing.Type docs (GH-23460)
miss-islington
webhook-mailer at python.org
Sun Nov 22 10:12:24 EST 2020
https://github.com/python/cpython/commit/734d6d9dfe520741ef2374245b75b84a9ee67748
commit: 734d6d9dfe520741ef2374245b75b84a9ee67748
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-22T07:12:20-08:00
summary:
Doc: fix typo in typing.Type docs (GH-23460)
(cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647)
Co-authored-by: John Belmonte <john at neggie.net>
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 351c0bee75c83..8c179ff79d15f 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -570,7 +570,7 @@ The module defines the following classes, functions and decorators:
: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.
More information about the Python-checkins
mailing list