https://github.com/python/cpython/commit/41d1ebb33efb85cf530972da8172460cc076ff61 commit: 41d1ebb33efb85cf530972da8172460cc076ff61 branch: 3.9 author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com> committer: miss-islington <31488909+miss-islington at users.noreply.github.com> date: 2020年11月22日T07:16:48-08:00 summary: Doc: fix typo in typing.Type docs (GH-23460) (cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647) Co-authored-by: John Belmonte <john at neggie.net> files: M Doc/library/typing.rst diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 28c607e149139..af2cafb8b9969 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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.