diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ead7835bfff..8c8286059d5 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::