gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (GH-98605)

(cherry picked from commit be0cf82ae4)

Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-10-25 08:42:12 -07:00 committed by GitHub
parent abc1a8c61c
commit 4cd5ea62ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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::