Skip to content

Commit 20d1f49

Browse files
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 8144095) Co-authored-by: Ivan Levkivskyi <[email protected]>
1 parent 164bee2 commit 20d1f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ A user-defined class can be defined as a generic class.
230230
single type parameter ``T`` . This also makes ``T`` valid as a type within the
231231
class body.
232232

233-
The :class:`Generic` base class uses a metaclass that defines
234-
:meth:`__getitem__` so that ``LoggedVar[t]`` is valid as a type::
233+
The :class:`Generic` base class defines :meth:`__class_getitem__` so that
234+
``LoggedVar[t]`` is valid as a type::
235235

236236
from typing import Iterable
237237

0 commit comments

Comments
 (0)