]> granicus.if.org Git - python/commitdiff
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
authorIvan Levkivskyi <levkivskyi@gmail.com>
Sun, 13 Oct 2019 16:53:06 +0000 (17:53 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Oct 2019 16:53:06 +0000 (09:53 -0700)
Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).

https://bugs.python.org/issue28556

Doc/library/typing.rst

index 642f8c653eeb5d923dc09b4670947cb06fbbbc2c..94d60b4602526bd3dcbc2a93d6ed64b506593f0c 100644 (file)
@@ -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