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

Skip to content

Commit 734d6d9

Browse files
Doc: fix typo in typing.Type docs (GH-23460)
(cherry picked from commit 5ef53a8) Co-authored-by: John Belmonte <john@neggie.net>
1 parent 2528a7d commit 734d6d9

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
@@ -570,7 +570,7 @@ The module defines the following classes, functions and decorators:
570570
:ref:`type variables <generics>`, and unions of any of these types.
571571
For example::
572572

573-
def new_non_team_user(user_class: Type[Union[BaseUser, ProUser]]): ...
573< 49A9 /code>+
def new_non_team_user(user_class: Type[Union[BasicUser, ProUser]]): ...
574574

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

0 commit comments

Comments
 (0)
0