[Python-checkins] bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)

Miss Islington (bot) webhook-mailer at python.org
Sun Oct 13 13:00:23 EDT 2019


https://github.com/python/cpython/commit/e742826531d4369cb1eff65337fa95fd67de8d42
commit: e742826531d4369cb1eff65337fa95fd67de8d42
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-10-13T10:00:19-07:00
summary:

bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)


Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).

https://bugs.python.org/issue28556
(cherry picked from commit 8144095707f87bdee6f3e1bbb15283ea61381be6)

Co-authored-by: Ivan Levkivskyi <levkivskyi at gmail.com>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 642f8c653eeb5..94d60b4602526 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -231,8 +231,8 @@ A user-defined class can be defined as a generic class.
 single type parameter ``T`` . This also makes ``T`` valid as a type within the
 class body.
 
-The :class:`Generic` base class uses a metaclass that defines
-:meth:`__getitem__` so that ``LoggedVar[t]`` is valid as a type::
+The :class:`Generic` base class defines :meth:`__class_getitem__` so that
+``LoggedVar[t]`` is valid as a type::
 
    from typing import Iterable
 



More information about the Python-checkins mailing list