Skip to content

Commit 72a596a

Browse files
committed
...I forgot to commit the test results.
1 parent 63ca2a1 commit 72a596a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test-data/unit/check-statements.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,11 +2289,12 @@ from collections.abc import Iterator
22892289
class A:
22902290
def list(self) -> None: ...
22912291

2292-
def foo(self) -> list[int]:
2292+
def foo(self) -> list[int]: # E: Function "__main__.A.list" is not valid as a type \
2293+
# N: Perhaps you need "Callable[...]" or a callback protocol?
22932294
return []
22942295

22952296
def fn() -> Iterator[int]:
2296-
yield from A().foo()
2297+
yield from A().foo() # E: "list?[builtins.int]" has no attribute "__iter__" (not iterable)
22972298
[builtins fixtures/tuple.pyi]
22982299

22992300
[case testNoCrashOnStarRightHandSide]

0 commit comments

Comments
 (0)