You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 140: Unexpected errors ['This `yield` expression is unreachable [unreachable]']
8
-
Line 145: Unexpected errors ['This `yield` expression is unreachable [unreachable]']
9
-
Line 190: Unexpected errors ['This `yield` expression is unreachable [unreachable]']
10
4
"""
11
5
output = """
12
6
ERROR annotations_generators.py:51:21-39: Function declared to return `C`, but one or more paths are missing an explicit `return` [bad-return]
@@ -17,10 +11,7 @@ ERROR annotations_generators.py:71:12-16: Returned type `Literal[True]` is not a
17
11
ERROR annotations_generators.py:75:11-14: Yielded type `B` is not assignable to declared yield type `A` [invalid-yield]
18
12
ERROR annotations_generators.py:86:21-24: Generator function should return `Generator` [bad-return]
19
13
ERROR annotations_generators.py:91:27-30: Async generator function should return `AsyncGenerator` [bad-return]
20
-
ERROR annotations_generators.py:118:5-29: Cannot yield from `Generator[A, None, None]`, which is not assignable to declared return type `Generator[B, None, Unknown]` [invalid-yield]
21
-
ERROR annotations_generators.py:119:5-19: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[B, None, Unknown]` [invalid-yield]
22
-
ERROR annotations_generators.py:135:5-29: Cannot yield from `Generator[None, int, None]`, which is not assignable to declared return type `Generator[None, str, Unknown]` [invalid-yield]
23
-
ERROR annotations_generators.py:140:5-13: This `yield` expression is unreachable [unreachable]
24
-
ERROR annotations_generators.py:145:5-13: This `yield` expression is unreachable [unreachable]
25
-
ERROR annotations_generators.py:190:5-12: This `yield` expression is unreachable [unreachable]
14
+
ERROR annotations_generators.py:118:5-29: Cannot yield from `Generator[A]`, which is not assignable to declared return type `Generator[B, None, Unknown]` [invalid-yield]
15
+
ERROR annotations_generators.py:119:5-19: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[B, None, Unknown]` [invalid-yield]
16
+
ERROR annotations_generators.py:135:5-29: Cannot yield from `Generator[None, int]`, which is not assignable to declared return type `Generator[None, str, Unknown]` [invalid-yield]
Copy file name to clipboardExpand all lines: conformance/results/pyrefly/constructors_callable.toml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ errors_diff = """
9
9
Line 186: Expected 1 errors
10
10
Line 197: Expected 1 errors
11
11
Line 167: Unexpected errors ['assert_type(Class7[int], Class7[str]) failed [assert-type]', "Argument `Literal['']` is not assignable to parameter `x` with type `int` [bad-argument-type]"]
12
-
Line 185: Unexpected errors ['assert_type(Class8[Any], Class8[str]) failed [assert-type]']
12
+
Line 185: Unexpected errors ['assert_type(Class8[Unknown], Class8[str]) failed [assert-type]']
0 commit comments