Commit 81440957 authored by Ivan Levkivskyi's avatar Ivan Levkivskyi Committed by Miss Islington (bot)

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
parent bb78f6cf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment