From: Eclips4 <80244920+Eclips4@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:32:52 +0000 (+0300) Subject: gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example... X-Git-Tag: v3.12.0a2~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be0cf82ae4e49891dcd5e37012d6f6ce08bc4726;p=thirdparty%2FPython%2Fcpython.git gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (#98605) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ead7835bfffa..8c8286059d53 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1351,7 +1351,7 @@ These are not used in annotations. They are building blocks for creating generic Shape = TypeVarTuple('Shape') class Array(Generic[*Shape]): def __getitem__(self, key: tuple[*Shape]) -> float: ... - def __abs__(self) -> Array[*Shape]: ... + def __abs__(self) -> "Array[*Shape]": ... def get_shape(self) -> tuple[*Shape]: ... Type variable tuples can be happily combined with normal type variables::