Skip to content

Commit 07fae65

Browse files
committed
conformance: update results
1 parent b8548b8 commit 07fae65

File tree

7 files changed

+38
-453
lines changed

7 files changed

+38
-453
lines changed

conformance/results/mypy/aliases_typealiastype.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Incorrectly rejects some recursive type aliases using TypeAliasType.
44
Incorrectly rejects the use of a class-scoped TypeVar in a TypeAliasType definition.
55
"""
66
output = """
7-
aliases_typealiastype.py:19: error: Cannot resolve name "GoodAlias4" (possible cyclic definition) [misc]
87
aliases_typealiastype.py:20: error: Cannot resolve name "GoodAlias5" (possible cyclic definition) [misc]
98
aliases_typealiastype.py:22: error: Cannot resolve name "GoodAlias5" (possible cyclic definition) [misc]
109
aliases_typealiastype.py:27: error: Type variable "T" is not included in type_params [valid-type]
@@ -17,7 +16,6 @@ aliases_typealiastype.py:46: error: Cannot resolve name "BadAlias4" (possible cy
1716
aliases_typealiastype.py:47: error: Invalid recursive alias: a union item of itself [misc]
1817
aliases_typealiastype.py:48: error: Cannot resolve name "BadAlias6" (possible cyclic definition) [misc]
1918
aliases_typealiastype.py:48: error: Cannot resolve name "BadAlias7" (possible cyclic definition) [misc]
20-
aliases_typealiastype.py:48: error: Name "BadAlias7" is used before definition [used-before-def]
2119
aliases_typealiastype.py:49: error: Cannot resolve name "BadAlias7" (possible cyclic definition) [misc]
2220
aliases_typealiastype.py:52: error: Invalid type alias: expression is not a valid type [valid-type]
2321
aliases_typealiastype.py:53: error: Bracketed expression "[...]" is not valid as a type [valid-type]
@@ -35,10 +33,10 @@ aliases_typealiastype.py:62: error: Invalid type: try using Literal[1] instead?
3533
aliases_typealiastype.py:63: error: Invalid type alias: expression is not a valid type [valid-type]
3634
aliases_typealiastype.py:63: error: Function "list" could always be true in boolean context [truthy-function]
3735
aliases_typealiastype.py:64: error: Invalid type alias: expression is not a valid type [valid-type]
36+
aliases_typealiastype.py:66: error: Cannot resolve name "BadAlias21" (possible cyclic definition) [misc]
3837
"""
3938
conformance_automated = "Fail"
4039
errors_diff = """
41-
Line 19: Unexpected errors ['aliases_typealiastype.py:19: error: Cannot resolve name "GoodAlias4" (possible cyclic definition) [misc]']
4240
Line 20: Unexpected errors ['aliases_typealiastype.py:20: error: Cannot resolve name "GoodAlias5" (possible cyclic definition) [misc]']
4341
Line 22: Unexpected errors ['aliases_typealiastype.py:22: error: Cannot resolve name "GoodAlias5" (possible cyclic definition) [misc]']
4442
Line 27: Unexpected errors ['aliases_typealiastype.py:27: error: Type variable "T" is not included in type_params [valid-type]']

conformance/results/mypy/version.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version = "mypy 1.15.0"
2-
test_duration = 1.8
2+
test_duration = 2.0

conformance/results/pyright/aliases_typealiastype.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
conformant = "Pass"
1+
conformant = "Partial"
2+
notes = """
3+
incorrectly allows undefined self reference
4+
"""
25
output = """
36
aliases_typealiastype.py:32:18 - error: Cannot access attribute "other_attrib" for class "TypeAliasType"
47
  Attribute "other_attrib" is unknown (reportAttributeAccessIssue)
@@ -29,6 +32,7 @@ aliases_typealiastype.py:62:42 - error: Expected class but received "Literal[1]"
2932
aliases_typealiastype.py:63:42 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
3033
aliases_typealiastype.py:64:42 - error: Type expressions cannot use format string literals (f-strings) (reportGeneralTypeIssues)
3134
"""
32-
conformance_automated = "Pass"
35+
conformance_automated = "Fail"
3336
errors_diff = """
37+
Line 66: Expected 1 errors
3438
"""

conformance/results/pyright/generics_type_erasure.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
conformant = "Pass"
1+
conformant = "Partial"
2+
notes = """
3+
no error for `type(n1).label`
4+
"""
25
output = """
36
generics_type_erasure.py:38:16 - error: Argument of type "Literal['']" cannot be assigned to parameter "label" of type "int | None" in function "__init__"
47
  Type "Literal['']" is not assignable to type "int | None"
@@ -12,8 +15,8 @@ generics_type_erasure.py:42:11 - error: Access to generic instance variable thro
1215
generics_type_erasure.py:43:11 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1316
generics_type_erasure.py:44:6 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1417
generics_type_erasure.py:45:6 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
15-
generics_type_erasure.py:46:10 - error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
1618
"""
17-
conformance_automated = "Pass"
19+
conformance_automated = "Fail"
1820
errors_diff = """
21+
Line 46: Expected 1 errors
1922
"""
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "pyright 1.1.399"
2-
test_duration = 1.1
1+
version = "pyright 1.1.400"
2+
test_duration = 0.9

0 commit comments

Comments
 (0)