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

(cherry picked from commit 5ef53a88f3)

Co-authored-by: John Belmonte <john@neggie.net>
This commit is contained in:
Miss Islington (bot) 2020-11-22 07:16:48 -08:00 committed by GitHub
parent e8b1c038b1
commit 41d1ebb33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.