Skip to content

Commit 069fe31

Browse files
committed
Upgrade zuban to 0.10.0
1 parent 3a4ada0 commit 069fe31

5 files changed

Lines changed: 21 additions & 29 deletions

File tree

‎conformance/results/results.html‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎conformance/results/zuban/annotations_forward_refs.toml‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ notes = """
33
Fails to resolve forward references in classes from builtins
44
Incorrectly resolves type parameter syntax names in forward references
55
"""
6-
conformance_automated = "Fail"
6+
conformance_automated = "Pass"
77
errors_diff = """
8-
Line 82: Unexpected errors ['annotations_forward_refs.py:82: error: Name "bytes" is not defined [name-defined]']
9-
Line 110: Unexpected errors ['annotations_forward_refs.py:110: error: Expression is of type "Any", not "bytes" [misc]']
10-
Line 130: Unexpected errors ['annotations_forward_refs.py:130: error: Expression is of type "T", not "int" [misc]', 'annotations_forward_refs.py:130: error: Argument 1 to "identity2" of "ClassE" has incompatible type "int"; expected "T" [arg-type]']
118
"""
129
output = """
1310
annotations_forward_refs.py:24: error: Forward reference unions cause runtime errors, consider wrapping the whole annotation with a string [misc]
@@ -31,16 +28,12 @@ annotations_forward_refs.py:53: error: Invalid type comment or annotation [vali
3128
annotations_forward_refs.py:54: error: Invalid type comment or annotation [valid-type]
3229
annotations_forward_refs.py:55: error: Module "types" is not valid as a type [valid-type]
3330
annotations_forward_refs.py:55: note: Perhaps you meant to use a protocol matching the module structure?
34-
annotations_forward_refs.py:82: error: Name "bytes" is not defined [name-defined]
3531
annotations_forward_refs.py:92: error: Name "ClassF" is not defined [name-defined]
36-
annotations_forward_refs.py:94: error: Name "str" is not defined [name-defined]
32+
annotations_forward_refs.py:94: error: Cannot resolve name "str" (possible cyclic definition) [misc]
3733
annotations_forward_refs.py:96: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
3834
annotations_forward_refs.py:96: note: Perhaps you need "Callable[...]" or a callback protocol?
3935
annotations_forward_refs.py:101: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
4036
annotations_forward_refs.py:101: note: Perhaps you need "Callable[...]" or a callback protocol?
4137
annotations_forward_refs.py:103: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
4238
annotations_forward_refs.py:103: note: Perhaps you need "Callable[...]" or a callback protocol?
43-
annotations_forward_refs.py:110: error: Expression is of type "Any", not "bytes" [misc]
44-
annotations_forward_refs.py:130: error: Expression is of type "T", not "int" [misc]
45-
annotations_forward_refs.py:130: error: Argument 1 to "identity2" of "ClassE" has incompatible type "int"; expected "T" [arg-type]
4639
"""

‎conformance/results/zuban/annotations_future_import.toml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ notes = """
33
Fails to resolve forward references in classes from builtins
44
Resolves some class annotations to outer names instead of shadowing class bindings
55
"""
6-
conformance_automated = "Fail"
6+
conformance_automated = "Pass"
77
errors_diff = """
8-
Line 37: Expected 1 errors
9-
Line 39: Expected 1 errors
10-
Line 28: Unexpected errors ['annotations_future_import.py:28: error: Invalid type comment or annotation [valid-type]']
118
"""
129
output = """
13-
annotations_future_import.py:28: error: Invalid type comment or annotation [valid-type]
10+
annotations_future_import.py:37: error: Cannot resolve name "str" (possible cyclic definition) [misc]
11+
annotations_future_import.py:39: error: Function "tests.annotations_future_import.ClassB.int" is not valid as a type [valid-type]
12+
annotations_future_import.py:39: note: Perhaps you need "Callable[...]" or a callback protocol?
1413
annotations_future_import.py:44: error: Function "tests.annotations_future_import.ClassB.int" is not valid as a type [valid-type]
1514
annotations_future_import.py:44: note: Perhaps you need "Callable[...]" or a callback protocol?
1615
annotations_future_import.py:46: error: Function "tests.annotations_future_import.ClassB.int" is not valid as a type [valid-type]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "zuban 0.9.2"
1+
version = "zuban 0.10.0"

‎conformance/uv.lock‎

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)