Skip to content

Commit

Permalink
bpo-28556: Remove another mention of metaclass of Generic in typing d…
Browse files Browse the repository at this point in the history
…ocs (pythonGH-16743)

Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).


https://bugs.python.org/issue28556
  • Loading branch information
ilevkivskyi authored and miss-islington committed Oct 13, 2019
1 parent bb78f6c commit 8144095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8144095

Please sign in to comment.