Skip to content

Commit 68c81ce

Browse files
committed
fix: add map fixture
1 parent e788168 commit 68c81ce

File tree

1 file changed

+5
-0
lines changed
  • mypyc/test-data/fixtures

1 file changed

+5
-0
lines changed

mypyc/test-data/fixtures/ir.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ def __iter__(self) -> Iterator[int]: pass
308308
def __len__(self) -> int: pass
309309
def __next__(self) -> int: pass
310310

311+
class map(Iterator[_S]):
312+
def __init__(self, func: Callable[[_T], _S], iterable: Iterable[_T]) -> None: pass
313+
def __iter__(self) -> Self: pass
314+
def __next__(self) -> _S: pass
315+
311316
class property:
312317
def __init__(self, fget: Optional[Callable[[Any], Any]] = ...,
313318
fset: Optional[Callable[[Any, Any], None]] = ...,

0 commit comments

Comments
 (0)