diff options
author | Ivan Levkivskyi <levkivskyi@gmail.com> | 2019-10-13 16:53:06 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-13 16:53:06 (GMT) |
commit | 8144095707f87bdee6f3e1bbb15283ea61381be6 (patch) | |
tree | b6bf7046b9cffc95e7d727f756abad72484e8a29 /Doc/library/typing.rst | |
parent | bb78f6cfa6f2b84fa4611d39c35baf1c7dce7f8d (diff) | |
download | cpython-8144095707f87bdee6f3e1bbb15283ea61381be6.zip cpython-8144095707f87bdee6f3e1bbb15283ea61381be6.tar.gz cpython-8144095707f87bdee6f3e1bbb15283ea61381be6.tar.bz2 |
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
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 642f8c6..94d60b4 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 |