]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Oct 2019 16:58:59 +0000 (09:58 -0700)
committerNed Deily <nad@python.org>
Mon, 14 Oct 2019 21:29:02 +0000 (17:29 -0400)
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@gmail.com>
Doc/library/typing.rst

index b42f33ccc0d351d1c505c942de51f52c2dc2ad56..2c84551e4eae0ce7512e6b039bed70ca5f048115 100644 (file)
@@ -230,8 +230,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