Skip to content

Commit b63414c

Browse files
authored
Latest results for all type checkers (#2097)
Also allowed multiple errors in one case for tests/overloads_definitions.py
1 parent 94c46d7 commit b63414c

25 files changed

+51
-63
lines changed

conformance/results/mypy/annotations_forward_refs.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ annotations_forward_refs.py:96: error: Expression is of type int?, not "int" [a
3131
"""
3232
conformance_automated = "Fail"
3333
errors_diff = """
34-
Line 22: Expected 1 errors
35-
Line 23: Expected 1 errors
3634
Line 24: Expected 1 errors
3735
Line 25: Expected 1 errors
38-
Line 66: Expected 1 errors
3936
Line 87: Unexpected errors ['annotations_forward_refs.py:87: error: Function "annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]']
4037
Line 96: Unexpected errors ['annotations_forward_refs.py:96: error: Expression is of type int?, not "int" [assert-type]']
4138
"""

conformance/results/pyre/annotations_forward_refs.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ annotations_forward_refs.py:103:7 Undefined or invalid type [11]: Annotation `
2929
"""
3030
conformance_automated = "Fail"
3131
errors_diff = """
32-
Line 22: Expected 1 errors
33-
Line 23: Expected 1 errors
3432
Line 24: Expected 1 errors
3533
Line 25: Expected 1 errors
3634
Line 54: Expected 1 errors
37-
Line 66: Expected 1 errors
3835
Line 89: Expected 1 errors
3936
Line 87: Unexpected errors ['annotations_forward_refs.py:87:7 Undefined or invalid type [11]: Annotation `ClassD.int` is not defined as a type.']
4037
Line 96: Unexpected errors ['annotations_forward_refs.py:96:0 Assert type [70]: Expected `int` but got `unknown`.']

conformance/results/pyrefly/annotations_forward_refs.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ Does not reject some type forms that require quotes.
55
"""
66
conformance_automated = "Fail"
77
errors_diff = """
8-
Line 22: Expected 1 errors
9-
Line 23: Expected 1 errors
108
Line 24: Expected 1 errors
119
Line 25: Expected 1 errors
12-
Line 66: Expected 1 errors
1310
Line 87: Unexpected errors ['Expected a type form, got instance of `(self: Self@ClassD) -> None` [not-a-type]']
1411
Line 96: Unexpected errors ['assert_type(Any, int) failed [assert-type]']
1512
"""

conformance/results/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h3>Python Type System Conformance Test Results</h3>
164164
</th>
165165
<th class='tc-header'><div class='tc-name'>pyre 0.9.25</div>
166166
</th>
167-
<th class='tc-header'><div class='tc-name'>zuban 0.0.24</div>
167+
<th class='tc-header'><div class='tc-name'>zuban 0.1.0</div>
168168
</th>
169169
<th class='tc-header'><div class='tc-name'>pyrefly 0.36.2</div>
170170
</th>

conformance/results/zuban/aliases_newtype.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ errors_diff = """
44
output = """
55
aliases_newtype.py:11: error: Argument 1 to "UserId" has incompatible type "str"; expected "int" [arg-type]
66
aliases_newtype.py:12: error: Incompatible types in assignment (expression has type "int", variable has type "UserId") [assignment]
7-
aliases_newtype.py:18: error: Incompatible types in assignment (expression has type "Type[UserId]", variable has type "Type[Any]") [assignment]
7+
aliases_newtype.py:18: error: Incompatible types in assignment (expression has type "type[UserId]", variable has type "type[Any]") [assignment]
88
aliases_newtype.py:23: error: Cannot use isinstance() with NewType type [misc]
99
aliases_newtype.py:26: error: Cannot subclass "NewType" [misc]
1010
aliases_newtype.py:35: error: String argument 1 "BadName" to NewType(...) does not match variable name "GoodName" [misc]

conformance/results/zuban/aliases_type_statement.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aliases_type_statement.py:17: error: "TypeAliasType" has no attribute "bit_count
66
aliases_type_statement.py:19: error: "TypeAliasType" not callable [operator]
77
aliases_type_statement.py:23: error: "TypeAliasType" has no attribute "other_attrib" [attr-defined]
88
aliases_type_statement.py:26: error: Type alias defined using "type" statement not valid as base class [misc]
9-
aliases_type_statement.py:31: error: Argument 2 to "isinstance" has incompatible type "TypeAliasType"; expected "Type[Any] | UnionType | tuple[_ClassInfo, ...]" [arg-type]
9+
aliases_type_statement.py:31: error: Argument 2 to "isinstance" has incompatible type "TypeAliasType"; expected "type[Any] | UnionType | tuple[_ClassInfo, ...]" [arg-type]
1010
aliases_type_statement.py:37: error: Invalid type alias: expression is not a valid type [valid-type]
1111
aliases_type_statement.py:38: error: Bracketed expression "[...]" is not valid as a type [valid-type]
1212
aliases_type_statement.py:38: note: Did you mean "List[...]"?

conformance/results/zuban/annotations_forward_refs.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@ Does not ignore newlines in multi-line unions
66
"""
77
conformance_automated = "Fail"
88
errors_diff = """
9-
Line 22: Expected 1 errors
10-
Line 23: Expected 1 errors
119
Line 24: Expected 1 errors
1210
Line 25: Expected 1 errors
13-
Line 66: Expected 1 errors
1411
Line 82: Unexpected errors ['annotations_forward_refs.py:82: error: Name "str" is not defined [name-defined]']
1512
Line 87: Unexpected errors ['annotations_forward_refs.py:87: error: Function "annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]']
1613
Line 95: Unexpected errors ['annotations_forward_refs.py:95: error: Expression is of type "Any", not "str" [misc]']
1714
Line 96: Unexpected errors ['annotations_forward_refs.py:96: error: Expression is of type "Any", not "int" [misc]']
18-
Line 104: Unexpected errors ['annotations_forward_refs.py:104: error: invalid syntax [syntax]']
19-
Line 105: Unexpected errors ['annotations_forward_refs.py:105: error: invalid syntax [syntax]', 'annotations_forward_refs.py:105: error: invalid syntax [syntax]']
15+
Line 104: Unexpected errors ['annotations_forward_refs.py:104: error: Invalid syntax [syntax]']
16+
Line 105: Unexpected errors ['annotations_forward_refs.py:105: error: Invalid syntax [syntax]', 'annotations_forward_refs.py:105: error: Invalid syntax [syntax]']
2017
"""
2118
output = """
2219
annotations_forward_refs.py:41: error: Invalid type comment or annotation [valid-type]
@@ -46,7 +43,7 @@ annotations_forward_refs.py:89: error: Function "annotations_forward_refs.ClassD
4643
annotations_forward_refs.py:89: note: Perhaps you need "Callable[...]" or a callback protocol?
4744
annotations_forward_refs.py:95: error: Expression is of type "Any", not "str" [misc]
4845
annotations_forward_refs.py:96: error: Expression is of type "Any", not "int" [misc]
49-
annotations_forward_refs.py:104: error: invalid syntax [syntax]
50-
annotations_forward_refs.py:105: error: invalid syntax [syntax]
51-
annotations_forward_refs.py:105: error: invalid syntax [syntax]
46+
annotations_forward_refs.py:104: error: Invalid syntax [syntax]
47+
annotations_forward_refs.py:105: error: Invalid syntax [syntax]
48+
annotations_forward_refs.py:105: error: Invalid syntax [syntax]
5249
"""

conformance/results/zuban/annotations_generators.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ conformance_automated = "Pass"
22
errors_diff = """
33
"""
44
output = """
5-
annotations_generators.py:51: error: Missing return statement [return]
5+
annotations_generators.py:51: error: Incompatible return value type (implicitly returns "None", expected "C") [return-value]
66
annotations_generators.py:54: error: Incompatible return value type (got "bool", expected "C") [return-value]
77
annotations_generators.py:57: error: Incompatible types in "yield" (actual type "int", expected type "A") [misc]
88
annotations_generators.py:66: error: Incompatible types in "yield" (actual type "int", expected type "A") [misc]

conformance/results/zuban/dataclasses_match_args.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ conformance_automated = "Pass"
33
errors_diff = """
44
"""
55
output = """
6-
dataclasses_match_args.py:42: error: "Type[DC4]" has no attribute "__match_args__" [attr-defined]
6+
dataclasses_match_args.py:42: error: "type[DC4]" has no attribute "__match_args__" [attr-defined]
77
"""

conformance/results/zuban/dataclasses_slots.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Line 25: Expected 1 errors
99
output = """
1010
dataclasses_slots.py:11: error: "DC1" both defines "__slots__" and is used with "slots=True" [misc]
1111
dataclasses_slots.py:38: error: Trying to assign name "y" that is not in "__slots__" of type "dataclasses_slots.DC3" [misc]
12-
dataclasses_slots.py:66: error: "Type[DC6]" has no attribute "__slots__" [attr-defined]
12+
dataclasses_slots.py:66: error: "type[DC6]" has no attribute "__slots__" [attr-defined]
1313
dataclasses_slots.py:69: error: "DC6" has no attribute "__slots__" [attr-defined]
1414
"""

0 commit comments

Comments
 (0)