From ad02340e036ecf1fe985c113e9c53d5e35e66ba7 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 24 May 2024 06:14:02 -0700 Subject: [PATCH] Update docs/source/generics.rst --- docs/source/generics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/generics.rst b/docs/source/generics.rst index f883a55c..12012456 100644 --- a/docs/source/generics.rst +++ b/docs/source/generics.rst @@ -267,7 +267,7 @@ For class methods, you can also define generic ``cls``, using :py:class:`type`: other: Optional["Friend"] = None @classmethod - def make_pair(cls: Type[T]) -> tuple[T, T]: + def make_pair(cls: type[T]) -> tuple[T, T]: a, b = cls(), cls() a.other = b b.other = a