Skip to content

Commit e742826

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 a04c7eb commit e742826

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
@@ -231,8 +231,8 @@ A user-defined class can be defined as a generic class.
231231
single type parameter ``T`` . This also makes ``T`` valid as a type within the
232232
class body.
233233

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

237237
from typing import Iterable
238238

0 commit comments

Comments
 (0)