]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: fix typo in typing.Type docs (GH-23460)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 22 Nov 2020 15:12:20 +0000 (07:12 -0800)
committerGitHub <noreply@github.com>
Sun, 22 Nov 2020 15:12:20 +0000 (07:12 -0800)
(cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647)

Co-authored-by: John Belmonte <john@neggie.net>
Doc/library/typing.rst

index 351c0bee75c83fccd4ccaaea81fd26a2c5310aa1..8c179ff79d15fa4b4f227b7d2fee218a5c1ad567 100644 (file)
@@ -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.