[Python-checkins] Doc: fix typo in typing.Type docs (GH-23460)

corona10 webhook-mailer at python.org
Sun Nov 22 09:54:28 EST 2020


https://github.com/python/cpython/commit/5ef53a88f3130cfcf9a9be3abd2ff2f997902647
commit: 5ef53a88f3130cfcf9a9be3abd2ff2f997902647
branch: master
author: John Belmonte <john at neggie.net>
committer: corona10 <donghee.na92 at gmail.com>
date: 2020-11-22T23:54:19+09:00
summary:

Doc: fix typo in typing.Type docs (GH-23460)

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 67fd55e7b8a24..b07bb8943d16f 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -641,7 +641,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.



More information about the Python-checkins mailing list