8000 Doc: fix typo in typing.Type docs (GH-23460) · Ringdingcoder/cpython@5ef53a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ef53a8

Browse files
authored
Doc: fix typo in typing.Type docs (pythonGH-23460)
1 parent 686c203 commit 5ef53a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
641641
:ref:`type variables <generics>`, and unions of any of these types.
642642
For example::
643643

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

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

0 commit comments

Comments
 (0)
0