You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generics_variance_inference.py:41: error: Incompatible types in assignment (expression has type "ShouldBeCovariant1[float]", variable has type "ShouldBeCovariant1[int]") [assignment]
7
7
generics_variance_inference.py:49: error: Incompatible types in assignment (expression has type "ShouldBeCovariant2[float]", variable has type "ShouldBeCovariant2[int]") [assignment]
8
8
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]
10
9
generics_variance_inference.py:67: error: Incompatible types in assignment (expression has type "ShouldBeCovariant4[float]", variable has type "ShouldBeCovariant4[int]") [assignment]
11
10
generics_variance_inference.py:80: error: Incompatible types in assignment (expression has type "ShouldBeCovariant5[float]", variable has type "ShouldBeCovariant5[int]") [assignment]
12
11
generics_variance_inference.py:96: error: Incompatible types in assignment (expression has type "ShouldBeInvariant1[int]", variable has type "ShouldBeInvariant1[float]") [assignment]
generics_variance_inference.py:181: error: Incompatible types in assignment (expression has type "ShouldBeCovariant6[float]", variable has type "ShouldBeCovariant6[int]") [assignment]
26
25
generics_variance_inference.py:194: error: Incompatible types in assignment (expression has type "ShouldBeContravariant2[int]", variable has type "ShouldBeContravariant2[float]") [assignment]
27
26
"""
28
-
conformance_automated = "Fail"
27
+
conformance_automated = "Pass"
29
28
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]']
Copy file name to clipboardExpand all lines: conformance/results/pyright/annotations_forward_refs.toml
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
conformant = "Pass"
2
2
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)
3
5
annotations_forward_refs.py:24:7 - error: Union syntax cannot be used with string operand; use quotes around entire expression (reportGeneralTypeIssues)
4
6
annotations_forward_refs.py:25:13 - error: Union syntax cannot be used with string operand; use quotes around entire expression (reportGeneralTypeIssues)
5
7
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
27
29
annotations_forward_refs.py:53:11 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
28
30
annotations_forward_refs.py:54:11 - error: Type expressions cannot use format string literals (f-strings) (reportGeneralTypeIssues)
29
31
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)
30
33
annotations_forward_refs.py:80:14 - error: Type of "ClassF" could not be determined because it refers to itself (reportGeneralTypeIssues)
31
34
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)
Copy file name to clipboardExpand all lines: conformance/results/pyright/generics_variance_inference.toml
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,10 @@ generics_variance_inference.py:58:35 - error: Type "ShouldBeCovariant3[float]" i
23
23
"ShouldBeCovariant3[float]" is not assignable to "ShouldBeCovariant3[int]"
24
24
Type parameter "T@ShouldBeCovariant3" is covariant, but "float" is not a subtype of "int"
25
25
"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)
29
26
generics_variance_inference.py:67:34 - error: Type "ShouldBeCovariant4[float]" is not assignable to declared type "ShouldBeCovariant4[int]"
30
27
"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)
32
30
generics_variance_inference.py:80:34 - error: Type "ShouldBeCovariant5[float]" is not assignable to declared type "ShouldBeCovariant5[int]"
33
31
"ShouldBeCovariant5[float]" is not assignable to "ShouldBeCovariant5[int]"
34
32
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]
82
80
Type parameter "T@ShouldBeContravariant2" is contravariant, but "int" is not a supertype of "float"
83
81
"float" is not assignable to "int" (reportAssignmentType)
84
82
"""
85
-
conformance_automated = "Fail"
83
+
conformance_automated = "Pass"
86
84
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]"']
0 commit comments