From 5246b1f9c2751448f4344e72c8103626b709a25a Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Sun, 13 Oct 2019 11:33:41 +0100 Subject: [PATCH] Remove another mention of metaclass of Generic in typing docs --- Doc/library/typing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 642f8c653eeb5d9..94d60b4602526bd 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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