Skip to content

Commit 4617cb9

Browse files
conformance: fix unrelated error in annotations_generators.py (#2190)
Pycroscope produces an error because the yield yields None rather than an int. This seems like a reasonable error to give even if the yield is unreachable. Also picked up an update to Zuban.
1 parent 147bd1a commit 4617cb9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

conformance/results/pyrefly/annotations_generators.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ ERROR annotations_generators.py:119:5-19: Cannot yield from `Generator[int, None
2222
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]
2323
ERROR annotations_generators.py:140:5-13: This `yield` expression is unreachable [unreachable]
2424
ERROR annotations_generators.py:145:5-13: This `yield` expression is unreachable [unreachable]
25-
ERROR annotations_generators.py:190:5-10: This `yield` expression is unreachable [unreachable]
25+
ERROR annotations_generators.py:190:5-12: This `yield` expression is unreachable [unreachable]
2626
"""

conformance/results/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h3>Python Type System Conformance Test Results</h3>
176176
</th>
177177
<th class='tc-header'><div class='tc-name'>pyright 1.1.408</div>
178178
</th>
179-
<th class='tc-header'><div class='tc-name'>zuban 0.5.1</div>
179+
<th class='tc-header'><div class='tc-name'>zuban 0.6.0</div>
180180
</th>
181181
<th class='tc-header'><div class='tc-name'>pyrefly 0.53.0</div>
182182
</th>

conformance/results/zuban/typeddicts_operations.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ typeddicts_operations.py:26: error: TypedDict "Movie" has no key "other" [typed
99
typeddicts_operations.py:28: error: Missing key "year" for TypedDict "Movie" [typeddict-item]
1010
typeddicts_operations.py:29: error: Incompatible types (expression has type "float", TypedDict item "year" has type "int") [typeddict-item]
1111
typeddicts_operations.py:32: error: Extra key "other" for TypedDict "Movie" [typeddict-unknown-key]
12-
typeddicts_operations.py:37: error: Expected TypedDict key to be string literal [misc]
12+
typeddicts_operations.py:37: error: Expected TypedDict key to be string literal [literal-required]
1313
typeddicts_operations.py:47: error: "Movie" has no attribute "clear" [attr-defined]
1414
typeddicts_operations.py:49: error: Key "name" of TypedDict "Movie" cannot be deleted [misc]
1515
typeddicts_operations.py:62: error: "MovieOptional" has no attribute "clear" [attr-defined]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "zuban 0.5.1"
1+
version = "zuban 0.6.0"

conformance/tests/annotations_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def generator29() -> AsyncIterator[int]:
187187

188188
async def generator30() -> AsyncIterator[int]:
189189
raise NotImplementedError
190-
yield
190+
yield 1
191191

192192

193193
async def uses_generator30() -> None:

0 commit comments

Comments
 (0)