Skip to content

Commit f5930a5

Browse files
committed
edit error markers and regenerate results
1 parent 2d88da2 commit f5930a5

15 files changed

+41
-49
lines changed

conformance/results/mypy/aliases_recursive.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aliases_recursive.py:38: error: Incompatible types in assignment (expression has
66
aliases_recursive.py:39: error: Name "t6" already defined on line 38 [no-redef]
77
aliases_recursive.py:50: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
88
aliases_recursive.py:51: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
9-
aliases_recursive.py:52: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
9+
aliases_recursive.py:52: error: Dict entry 2 has incompatible type "str": "dict[str, str | int | list[int]]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
1010
aliases_recursive.py:63: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias1[str] | str" [list-item]
1111
aliases_recursive.py:69: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias2[str, int] | str | int" [list-item]
1212
aliases_recursive.py:72: error: Invalid recursive alias: a union item of itself [misc]

conformance/results/mypy/classes_classvar.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classes_classvar.py:70: error: ClassVar can only be used for assignments in clas
2020
classes_classvar.py:71: error: ClassVar can only be used for assignments in class body [misc]
2121
classes_classvar.py:73: error: ClassVar can only be used for assignments in class body [misc]
2222
classes_classvar.py:77: error: ClassVar can only be used for assignments in class body [misc]
23+
classes_classvar.py:78: error: ClassVar[...] can't be used inside a type alias [valid-type]
2324
classes_classvar.py:111: error: Cannot assign to class variable "stats" via instance [misc]
2425
classes_classvar.py:140: error: Incompatible types in assignment (expression has type "ProtoAImpl", variable has type "ProtoA") [assignment]
2526
classes_classvar.py:140: note: "ProtoAImpl" is missing following "ProtoA" protocol member:
@@ -30,6 +31,5 @@ classes_classvar.py:140: note: Protocol member ProtoA.y expected class variable,
3031
conformance_automated = "Fail"
3132
errors_diff = """
3233
Line 47: Expected 1 errors
33-
Line 78: Expected 1 errors
3434
Line 67: Unexpected errors ['classes_classvar.py:67: error: Invalid type: ClassVar nested inside other type [valid-type]']
3535
"""
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
conformant = "Partial"
2-
notes = """
3-
Incorrectly rejects kw_only field with default before positional field.
4-
"""
1+
conformant = "Pass"
52
output = """
63
dataclasses_kwonly.py:23: error: Too many positional arguments for "DC1" [misc]
7-
dataclasses_kwonly.py:29: error: Attributes without a default cannot follow attributes with one [misc]
8-
dataclasses_kwonly.py:32: error: Too many positional arguments for "DC2" [misc]
9-
dataclasses_kwonly.py:32: error: Too few arguments for "DC2" [call-arg]
10-
dataclasses_kwonly.py:32: error: Argument 1 to "DC2" has incompatible type "str"; expected "int" [arg-type]
11-
dataclasses_kwonly.py:35: error: "DC2" gets multiple values for keyword argument "b" [misc]
12-
dataclasses_kwonly.py:35: error: Too few arguments for "DC2" [call-arg]
13-
dataclasses_kwonly.py:35: error: Argument 1 to "DC2" has incompatible type "str"; expected "int" [arg-type]
144
dataclasses_kwonly.py:38: error: Too many positional arguments for "DC2" [misc]
15-
dataclasses_kwonly.py:38: error: Argument 1 to "DC2" has incompatible type "str"; expected "int" [arg-type]
16-
dataclasses_kwonly.py:38: error: Argument 2 to "DC2" has incompatible type "int"; expected "str" [arg-type]
175
dataclasses_kwonly.py:53: error: Too many positional arguments for "DC3" [misc]
186
"""
19-
conformance_automated = "Fail"
7+
conformance_automated = "Pass"
208
errors_diff = """
21-
Line 29: Unexpected errors ['dataclasses_kwonly.py:29: error: Attributes without a default cannot follow attributes with one [misc]']
22-
Line 32: Unexpected errors ['dataclasses_kwonly.py:32: error: Too many positional arguments for "DC2" [misc]', 'dataclasses_kwonly.py:32: error: Too few arguments for "DC2" [call-arg]', 'dataclasses_kwonly.py:32: error: Argument 1 to "DC2" has incompatible type "str"; expected "int" [arg-type]']
23-
Line 35: Unexpected errors ['dataclasses_kwonly.py:35: error: "DC2" gets multiple values for keyword argument "b" [misc]', 'dataclasses_kwonly.py:35: error: Too few arguments for "DC2" [call-arg]', 'dataclasses_kwonly.py:35: error: Argument 1 to "DC2" has incompatible type "str"; expected "int" [arg-type]']
249
"""

conformance/results/mypy/directives_reveal_type.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
conformant = "Pass"
22
output = """
3-
directives_reveal_type.py:14: note: Revealed type is "Union[builtins.int, builtins.str]"
3+
directives_reveal_type.py:14: note: Revealed type is "builtins.int | builtins.str"
44
directives_reveal_type.py:15: note: Revealed type is "builtins.list[builtins.int]"
55
directives_reveal_type.py:16: note: Revealed type is "Any"
66
directives_reveal_type.py:17: note: Revealed type is "directives_reveal_type.ForwardReference"

conformance/results/mypy/enums_behaviors.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ conformant = "Pass"
22
errors_diff = """
33
"""
44
output = """
5-
enums_behaviors.py:39: error: Cannot extend enum with existing members: "Shape" [misc]
5+
enums_behaviors.py:28: error: Expression is of type "Color", not "Literal[Color.RED]" [assert-type]
6+
enums_behaviors.py:32: error: Expression is of type "Color", not "Literal[Color.BLUE]" [assert-type]
7+
enums_behaviors.py:44: error: Cannot extend enum with existing members: "Shape" [misc]
68
"""
79
conformance_automated = "Pass"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "mypy 1.16.1"
2-
test_duration = 2.2
1+
version = "mypy 1.17.0"
2+
test_duration = 1.9

conformance/results/pyre/enums_behaviors.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ conformance_automated = "Pass"
55
errors_diff = """
66
"""
77
output = """
8-
enums_behaviors.py:39:0 Invalid inheritance [39]: Cannot inherit from final enum `Shape`. Enums with defined members cannot be extended.
8+
enums_behaviors.py:28:0 Assert type [70]: Expected `typing_extensions.Literal[Color.RED]` but got `Color`.
9+
enums_behaviors.py:32:0 Assert type [70]: Expected `typing_extensions.Literal[Color.BLUE]` but got `Color`.
10+
enums_behaviors.py:44:0 Invalid inheritance [39]: Cannot inherit from final enum `Shape`. Enums with defined members cannot be extended.
911
"""

conformance/results/pyre/generics_paramspec_specialization.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ notes = """
33
Reports error for legitimate use of `...` to specialize ParamSpec
44
"""
55
output = """
6-
generics_paramspec_specialization.py:32:14 Invalid type parameters [24]: Callable parameters expected for parameter specification `P2`, but a single type `...` was given for generic type ClassB.
7-
generics_paramspec_specialization.py:36:14 Invalid type parameters [24]: Callable parameters expected for parameter specification `P1`, but a single type `...` was given for generic type ClassA.
86
generics_paramspec_specialization.py:44:14 Invalid type parameters [24]: Callable parameters expected for parameter specification `P1`, but a single type `int` was given for generic type ClassA.
97
generics_paramspec_specialization.py:53:4 Too many arguments [19]: PositionalOnly call expects 2 positional arguments, 3 were provided.
108
generics_paramspec_specialization.py:54:4 Too many arguments [19]: PositionalOnly call expects 2 positional arguments, 3 were provided.
@@ -15,8 +13,6 @@ generics_paramspec_specialization.py:61:4 Too many arguments [19]: PositionalOnl
1513
"""
1614
conformance_automated = "Fail"
1715
errors_diff = """
18-
Line 32: Unexpected errors ['generics_paramspec_specialization.py:32:14 Invalid type parameters [24]: Callable parameters expected for parameter specification `P2`, but a single type `...` was given for generic type ClassB.']
19-
Line 36: Unexpected errors ['generics_paramspec_specialization.py:36:14 Invalid type parameters [24]: Callable parameters expected for parameter specification `P1`, but a single type `...` was given for generic type ClassA.']
2016
Line 53: Unexpected errors ['generics_paramspec_specialization.py:53:4 Too many arguments [19]: PositionalOnly call expects 2 positional arguments, 3 were provided.']
2117
Line 59: Unexpected errors ['generics_paramspec_specialization.py:59:4 Too many arguments [19]: PositionalOnly call expects 2 positional arguments, 3 were provided.']
2218
"""

conformance/results/pyre/qualifiers_final_decorator.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ qualifiers_final_decorator.py:126:0 Invalid inheritance [39]: `final` cannot be
1818
"""
1919
conformance_automated = "Fail"
2020
errors_diff = """
21-
Lines 80, 89: Expected error (tag 'Derived3')
22-
Lines 94, 102: Expected error (tag 'Derived4')
21+
Lines 80, 81, 89: Expected error (tag 'Derived3')
22+
Lines 94, 95, 102: Expected error (tag 'Derived4')
2323
Line 51: Unexpected errors ['qualifiers_final_decorator.py:51:4 Incompatible overload [43]: This definition does not have the same decorators as the preceding overload(s).']
2424
"""
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "pyre 0.9.23"
2-
test_duration = 10.7
1+
version = "pyre 0.9.25"
2+
test_duration = 7.4

0 commit comments

Comments
 (0)