diff --git a/docs/spec/generics.rst b/docs/spec/generics.rst index 2cb3f6f6..8fa222f8 100644 --- a/docs/spec/generics.rst +++ b/docs/spec/generics.rst @@ -131,8 +131,8 @@ should treat the two largely equivalently (except for variance, see below). takes a single type parameter ``T``. This also makes ``T`` valid as a type within the class body. -The ``Generic`` base class uses a metaclass that defines ``__getitem__`` -so that ``LoggedVar[t]`` is valid as a type:: +The ``Generic`` base class implements the :func:`~object.__class_getitem__` +classmethod so that ``LoggedVar[t]`` is valid as a type:: from collections.abc import Iterable