summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorEclips4 <80244920+Eclips4@users.noreply.github.com>2022-10-25 15:32:52 (GMT)
committerGitHub <noreply@github.com>2022-10-25 15:32:52 (GMT)
commitbe0cf82ae4e49891dcd5e37012d6f6ce08bc4726 (patch)
tree063405f9f6e54836e85e557c3a2b6a9e7bd61fde /Doc/library
parentcb95cc24efecf32ad035318867b065a2b042d25a (diff)
downloadcpython-be0cf82ae4e49891dcd5e37012d6f6ce08bc4726.zip
cpython-be0cf82ae4e49891dcd5e37012d6f6ce08bc4726.tar.gz
cpython-be0cf82ae4e49891dcd5e37012d6f6ce08bc4726.tar.bz2
gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (#98605)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/typing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index ead7835..8c82860 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::