]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: fix typo in typing.Type docs (GH-23460)
authorJohn Belmonte <john@neggie.net>
Sun, 22 Nov 2020 14:54:19 +0000 (23:54 +0900)
committerGitHub <noreply@github.com>
Sun, 22 Nov 2020 14:54:19 +0000 (23:54 +0900)
Doc/library/typing.rst

index 67fd55e7b8a24f3932cdd3e71e4a6c0f5ee2435f..b07bb8943d16fdc527d068fccf3bb114faaf08f6 100644 (file)
@@ -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.