Skip to content

Commit 1de742d

Browse files
committed
regenerate on 3.12
1 parent 2e0b063 commit 1de742d

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

conformance/results/mypy/classes_classvar.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ classes_classvar.py:38: error: ClassVar[...] must have at most one type argument
1010
classes_classvar.py:39: error: Invalid type: try using Literal[3] instead? [valid-type]
1111
classes_classvar.py:40: error: Name "var" is not defined [name-defined]
1212
classes_classvar.py:52: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "list[str]") [assignment]
13+
classes_classvar.py:54: error: Variable should not be annotated with both ClassVar and Final [misc]
1314
classes_classvar.py:55: error: Invalid type: ClassVar nested inside other type [valid-type]
1415
classes_classvar.py:67: error: Invalid type: ClassVar nested inside other type [valid-type]
1516
classes_classvar.py:69: error: ClassVar can only be used for assignments in class body [misc]
@@ -31,7 +32,6 @@ errors_diff = """
3132
Line 45: Expected 1 errors
3233
Line 46: Expected 1 errors
3334
Line 47: Expected 1 errors
34-
Line 54: Expected 1 errors
3535
Line 67: Unexpected errors ['classes_classvar.py:67: error: Invalid type: ClassVar nested inside other type [valid-type]']
3636
Line 130: Unexpected errors ['classes_classvar.py:130: error: All protocol members must have explicitly declared types [misc]']
3737
"""

conformance/results/mypy/dataclasses_final.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ conformance_automated = "Fail"
77
errors_diff = """
88
Line 27: Expected 1 errors
99
Line 16: Unexpected errors ['dataclasses_final.py:16: error: Final name must be initialized with a value [misc]']
10+
Line 18: Unexpected errors ['dataclasses_final.py:18: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]']
1011
Line 24: Unexpected errors ['dataclasses_final.py:24: error: Expression is of type "Any", not "int" [assert-type]']
1112
"""
1213
output = """
1314
dataclasses_final.py:16: error: Final name must be initialized with a value [misc]
15+
dataclasses_final.py:18: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]
1416
dataclasses_final.py:24: error: Expression is of type "Any", not "int" [assert-type]
1517
dataclasses_final.py:35: error: Cannot assign to final attribute "final_no_default" [misc]
1618
dataclasses_final.py:36: error: Cannot assign to final attribute "final_with_default" [misc]

conformance/results/mypy/generics_variance_inference.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ generics_variance_inference.py:28: error: Incompatible types in assignment (expr
66
generics_variance_inference.py:41: error: Incompatible types in assignment (expression has type "ShouldBeCovariant1[float]", variable has type "ShouldBeCovariant1[int]") [assignment]
77
generics_variance_inference.py:49: error: Incompatible types in assignment (expression has type "ShouldBeCovariant2[float]", variable has type "ShouldBeCovariant2[int]") [assignment]
88
generics_variance_inference.py:58: error: Incompatible types in assignment (expression has type "ShouldBeCovariant3[float]", variable has type "ShouldBeCovariant3[int]") [assignment]
9-
generics_variance_inference.py:66: error: Incompatible types in assignment (expression has type "ShouldBeCovariant4[int]", variable has type "ShouldBeCovariant4[float]") [assignment]
109
generics_variance_inference.py:67: error: Incompatible types in assignment (expression has type "ShouldBeCovariant4[float]", variable has type "ShouldBeCovariant4[int]") [assignment]
1110
generics_variance_inference.py:80: error: Incompatible types in assignment (expression has type "ShouldBeCovariant5[float]", variable has type "ShouldBeCovariant5[int]") [assignment]
1211
generics_variance_inference.py:96: error: Incompatible types in assignment (expression has type "ShouldBeInvariant1[int]", variable has type "ShouldBeInvariant1[float]") [assignment]
@@ -25,7 +24,6 @@ generics_variance_inference.py:170: error: Incompatible types in assignment (exp
2524
generics_variance_inference.py:181: error: Incompatible types in assignment (expression has type "ShouldBeCovariant6[float]", variable has type "ShouldBeCovariant6[int]") [assignment]
2625
generics_variance_inference.py:194: error: Incompatible types in assignment (expression has type "ShouldBeContravariant2[int]", variable has type "ShouldBeContravariant2[float]") [assignment]
2726
"""
28-
conformance_automated = "Fail"
27+
conformance_automated = "Pass"
2928
errors_diff = """
30-
Line 66: Unexpected errors ['generics_variance_inference.py:66: error: Incompatible types in assignment (expression has type "ShouldBeCovariant4[int]", variable has type "ShouldBeCovariant4[float]") [assignment]']
3129
"""

conformance/results/mypy/qualifiers_final_annotation.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ qualifiers_final_annotation.py:71: error: Cannot assign to final name "RATE" [m
2020
qualifiers_final_annotation.py:81: error: Cannot assign to final attribute "DEFAULT_ID" [misc]
2121
qualifiers_final_annotation.py:94: error: Cannot assign to final name "BORDER_WIDTH" [misc]
2222
qualifiers_final_annotation.py:96: error: Cannot assign to final name "__private" [misc]
23+
qualifiers_final_annotation.py:107: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]
24+
qualifiers_final_annotation.py:108: error: Variable should not be annotated with both ClassVar and Final [misc]
2325
qualifiers_final_annotation.py:118: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]
2426
qualifiers_final_annotation.py:121: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]
2527
qualifiers_final_annotation.py:131: error: Invalid "NamedTuple()" field name [misc]
@@ -38,8 +40,6 @@ qualifiers_final_annotation.py:170: error: Cannot assign to final name "PI" [mi
3840
"""
3941
conformance_automated = "Fail"
4042
errors_diff = """
41-
Line 107: Expected 1 errors
42-
Line 108: Expected 1 errors
4343
Line 149: Expected 1 errors
4444
Line 59: Unexpected errors ['qualifiers_final_annotation.py:59: error: Cannot assign to final attribute "ID6" [misc]']
4545
Line 96: Unexpected errors ['qualifiers_final_annotation.py:96: error: Cannot assign to final name "__private" [misc]']

conformance/results/pyrefly/annotations_forward_refs.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Does not reject some type forms that require quotes.
55
"""
66
conformance_automated = "Fail"
77
errors_diff = """
8-
Line 24: Expected 1 errors
9-
Line 25: Expected 1 errors
108
Line 87: Unexpected errors ['Expected a type form, got instance of `(self: Self@ClassD) -> None` [not-a-type]']
119
Line 96: Unexpected errors ['assert_type(Any, int) failed [assert-type]']
1210
"""
1311
output = """
12+
ERROR annotations_forward_refs.py:24:7-21: `|` union syntax does not work with string literals [invalid-annotation]
13+
ERROR annotations_forward_refs.py:25:7-21: `|` union syntax does not work with string literals [invalid-annotation]
1414
ERROR annotations_forward_refs.py:41:10-50: Function call cannot be used in annotations [invalid-annotation]
1515
ERROR annotations_forward_refs.py:42:10-20: List literal cannot be used in annotations [invalid-annotation]
1616
ERROR annotations_forward_refs.py:43:10-20: Tuple literal cannot be used in annotations [invalid-annotation]

conformance/results/pyright/annotations_forward_refs.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
conformant = "Pass"
22
output = """
3+
annotations_forward_refs.py:22:7 - error: "ClassA" is not defined (reportUndefinedVariable)
4+
annotations_forward_refs.py:23:12 - error: "ClassA" is not defined (reportUndefinedVariable)
35
annotations_forward_refs.py:24:7 - error: Union syntax cannot be used with string operand; use quotes around entire expression (reportGeneralTypeIssues)
46
annotations_forward_refs.py:25:13 - error: Union syntax cannot be used with string operand; use quotes around entire expression (reportGeneralTypeIssues)
57
annotations_forward_refs.py:41:10 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
@@ -27,10 +29,11 @@ annotations_forward_refs.py:52:11 - error: Unary operator not allowed in type ex
2729
annotations_forward_refs.py:53:11 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
2830
annotations_forward_refs.py:54:11 - error: Type expressions cannot use format string literals (f-strings) (reportGeneralTypeIssues)
2931
annotations_forward_refs.py:55:10 - error: Module cannot be used as a type (reportGeneralTypeIssues)
32+
annotations_forward_refs.py:66:26 - error: "ClassB" is not defined (reportUndefinedVariable)
3033
annotations_forward_refs.py:80:14 - error: Type of "ClassF" could not be determined because it refers to itself (reportGeneralTypeIssues)
3134
annotations_forward_refs.py:80:14 - error: Variable not allowed in type expression (reportInvalidTypeForm)
35+
annotations_forward_refs.py:89:8 - error: Expected class but received "(self: Self@ClassD) -> None" (reportGeneralTypeIssues)
3236
"""
33-
conformance_automated = "Fail"
37+
conformance_automated = "Pass"
3438
errors_diff = """
35-
Line 89: Expected 1 errors
3639
"""

conformance/results/pyright/generics_variance_inference.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ generics_variance_inference.py:58:35 - error: Type "ShouldBeCovariant3[float]" i
2323
  "ShouldBeCovariant3[float]" is not assignable to "ShouldBeCovariant3[int]"
2424
    Type parameter "T@ShouldBeCovariant3" is covariant, but "float" is not a subtype of "int"
2525
      "float" is not assignable to "int" (reportAssignmentType)
26-
generics_variance_inference.py:66:36 - error: Type "ShouldBeCovariant4[int]" is not assignable to declared type "ShouldBeCovariant4[float]"
27-
  "ShouldBeCovariant4[int]" is not assignable to "ShouldBeCovariant4[float]"
28-
    Type parameter "T@ShouldBeCovariant4" is invariant, but "int" is not the same as "float" (reportAssignmentType)
2926
generics_variance_inference.py:67:34 - error: Type "ShouldBeCovariant4[float]" is not assignable to declared type "ShouldBeCovariant4[int]"
3027
  "ShouldBeCovariant4[float]" is not assignable to "ShouldBeCovariant4[int]"
31-
    Type parameter "T@ShouldBeCovariant4" is invariant, but "float" is not the same as "int" (reportAssignmentType)
28+
    Type parameter "T@ShouldBeCovariant4" is covariant, but "float" is not a subtype of "int"
29+
      "float" is not assignable to "int" (reportAssignmentType)
3230
generics_variance_inference.py:80:34 - error: Type "ShouldBeCovariant5[float]" is not assignable to declared type "ShouldBeCovariant5[int]"
3331
  "ShouldBeCovariant5[float]" is not assignable to "ShouldBeCovariant5[int]"
3432
    Type parameter "T@ShouldBeCovariant5" is covariant, but "float" is not a subtype of "int"
@@ -82,7 +80,6 @@ generics_variance_inference.py:194:37 - error: Type "ShouldBeContravariant2[int]
8280
    Type parameter "T@ShouldBeContravariant2" is contravariant, but "int" is not a supertype of "float"
8381
      "float" is not assignable to "int" (reportAssignmentType)
8482
"""
85-
conformance_automated = "Fail"
83+
conformance_automated = "Pass"
8684
errors_diff = """
87-
Line 66: Unexpected errors ['generics_variance_inference.py:66:36 - error: Type "ShouldBeCovariant4[int]" is not assignable to declared type "ShouldBeCovariant4[float]"']
8885
"""

0 commit comments

Comments
 (0)