Skip to content

Commit c25cfd5

Browse files
author
Guido van Rossum
committed
Fix tests
1 parent ddfbbd5 commit c25cfd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-data/unit/fixtures/tuple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Builtins stub used in tuple-related test cases.
22

3-
from typing import Iterable, TypeVar, Generic, Sequence
3+
from typing import Iterable, Iterator, TypeVar, Generic, Sequence
44

55
Tco = TypeVar('Tco', covariant=True)
66

@@ -11,6 +11,7 @@ class type:
1111
def __init__(self, *a) -> None: pass
1212
def __call__(self, *a) -> object: pass
1313
class tuple(Sequence[Tco], Generic[Tco]):
14+
def __iter__(self) -> Iterator[Tco]: pass
1415
def __getitem__(self, x: int) -> Tco: pass
1516
class function: pass
1617

0 commit comments

Comments
 (0)