Skip to content

Commit 41d1ebb

Browse files
Doc: fix typo in typing.Type docs (pythonGH-23460)
(cherry picked from commit 5ef53a8) Co-authored-by: John Belmonte <john@neggie.net>
1 parent e8b1c03 commit 41d1ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
622622
:ref:`type variables <generics>`, and unions of any of these types.
623623
For example::
624624

625-
def new_non_team_user(user_class: Type[Union[BaseUser, ProUser]]): ...
625+
def new_non_team_user(user_class: Type[Union[BasicUser, ProUser]]): ...
626626

627627
``Type[Any]`` is equivalent to ``Type`` which in turn is equivalent
628628
to ``type``, which is the root of Python's metaclass hierarchy.

0 commit comments

Comments
 (0)