Skip to content

Commit 498fa07

Browse files
committed
Conformance: Add conformance results for implementation and platform checks.
- Introduced new TOML files for various conformance results related to directives implementation version, platform checks, and version/platform boolean checks. - Marked conformance as "Unsupported" or "Partial" based on the ability to prune branches for specific checks. - Documented unexpected errors and output related to type assignment issues, particularly with `Literal` types and incompatible types in assignments. - Updated existing TOML files to include additional error messages for unresolved references and type assertion failures. Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent b558039 commit 498fa07

30 files changed

Lines changed: 1211 additions & 0 deletions
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
conformant = "Unsupported"
2+
notes = """
3+
Does not prune branches for sys.implementation.name equality or membership checks.
4+
"""
5+
conformance_automated = "Fail"
6+
errors_diff = """
7+
Line 21: Unexpected errors ['directives_implementation_name.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
8+
Line 23: Unexpected errors ['directives_implementation_name.py:23: error: Expression is of type "int | str", not "int" [assert-type]']
9+
Line 27: Unexpected errors ['directives_implementation_name.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
10+
Line 32: Unexpected errors ['directives_implementation_name.py:32: error: Expression is of type "int | str", not "int" [assert-type]']
11+
Line 36: Unexpected errors ['directives_implementation_name.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
12+
Line 42: Unexpected errors ['directives_implementation_name.py:42: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
13+
Line 44: Unexpected errors ['directives_implementation_name.py:44: error: Expression is of type "int | str", not "int" [assert-type]']
14+
Line 54: Unexpected errors ['directives_implementation_name.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
15+
Line 56: Unexpected errors ['directives_implementation_name.py:56: error: Expression is of type "int | str", not "int" [assert-type]']
16+
Line 60: Unexpected errors ['directives_implementation_name.py:60: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
17+
Line 65: Unexpected errors ['directives_implementation_name.py:65: error: Expression is of type "int | str", not "int" [assert-type]']
18+
Line 68: Unexpected errors ['directives_implementation_name.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
19+
Line 74: Unexpected errors ['directives_implementation_name.py:74: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
20+
Line 84: Unexpected errors ['directives_implementation_name.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
21+
Line 86: Unexpected errors ['directives_implementation_name.py:86: error: Expression is of type "int | str", not "int" [assert-type]']
22+
Line 90: Unexpected errors ['directives_implementation_name.py:90: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
23+
Line 95: Unexpected errors ['directives_implementation_name.py:95: error: Expression is of type "int | str", not "int" [assert-type]']
24+
Line 98: Unexpected errors ['directives_implementation_name.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
25+
Line 104: Unexpected errors ['directives_implementation_name.py:104: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
26+
Line 114: Unexpected errors ['directives_implementation_name.py:114: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
27+
Line 116: Unexpected errors ['directives_implementation_name.py:116: error: Expression is of type "int | str", not "int" [assert-type]']
28+
Line 120: Unexpected errors ['directives_implementation_name.py:120: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
29+
Line 125: Unexpected errors ['directives_implementation_name.py:125: error: Expression is of type "int | str", not "int" [assert-type]']
30+
Line 128: Unexpected errors ['directives_implementation_name.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
31+
Line 134: Unexpected errors ['directives_implementation_name.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
32+
"""
33+
output = """
34+
directives_implementation_name.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
35+
directives_implementation_name.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
36+
directives_implementation_name.py:23: error: Expression is of type "int | str", not "int" [assert-type]
37+
directives_implementation_name.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
38+
directives_implementation_name.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
39+
directives_implementation_name.py:32: error: Expression is of type "int | str", not "int" [assert-type]
40+
directives_implementation_name.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
41+
directives_implementation_name.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
42+
directives_implementation_name.py:42: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
43+
directives_implementation_name.py:44: error: Expression is of type "int | str", not "int" [assert-type]
44+
directives_implementation_name.py:51: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
45+
directives_implementation_name.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
46+
directives_implementation_name.py:56: error: Expression is of type "int | str", not "int" [assert-type]
47+
directives_implementation_name.py:60: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
48+
directives_implementation_name.py:63: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
49+
directives_implementation_name.py:65: error: Expression is of type "int | str", not "int" [assert-type]
50+
directives_implementation_name.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
51+
directives_implementation_name.py:70: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
52+
directives_implementation_name.py:72: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
53+
directives_implementation_name.py:74: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
54+
directives_implementation_name.py:81: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
55+
directives_implementation_name.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
56+
directives_implementation_name.py:86: error: Expression is of type "int | str", not "int" [assert-type]
57+
directives_implementation_name.py:90: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
58+
directives_implementation_name.py:93: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
59+
directives_implementation_name.py:95: error: Expression is of type "int | str", not "int" [assert-type]
60+
directives_implementation_name.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
61+
directives_implementation_name.py:100: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
62+
directives_implementation_name.py:102: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
63+
directives_implementation_name.py:104: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
64+
directives_implementation_name.py:111: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
65+
directives_implementation_name.py:114: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
66+
directives_implementation_name.py:116: error: Expression is of type "int | str", not "int" [assert-type]
67+
directives_implementation_name.py:120: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
68+
directives_implementation_name.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
69+
directives_implementation_name.py:125: error: Expression is of type "int | str", not "int" [assert-type]
70+
directives_implementation_name.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
71+
directives_implementation_name.py:130: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
72+
directives_implementation_name.py:132: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
73+
directives_implementation_name.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
74+
"""
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
conformant = "Unsupported"
2+
notes = """
3+
Does not prune branches for sys.implementation.version comparisons using the CPython target version.
4+
"""
5+
conformance_automated = "Fail"
6+
errors_diff = """
7+
Line 21: Unexpected errors ['directives_implementation_version.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
8+
Line 23: Unexpected errors ['directives_implementation_version.py:23: error: Expression is of type "int | str", not "int" [assert-type]']
9+
Line 27: Unexpected errors ['directives_implementation_version.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
10+
Line 32: Unexpected errors ['directives_implementation_version.py:32: error: Expression is of type "int | str", not "int" [assert-type]']
11+
Line 37: Unexpected errors ['directives_implementation_version.py:37: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
12+
Line 39: Unexpected errors ['directives_implementation_version.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
13+
"""
14+
output = """
15+
directives_implementation_version.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
16+
directives_implementation_version.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
17+
directives_implementation_version.py:23: error: Expression is of type "int | str", not "int" [assert-type]
18+
directives_implementation_version.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
19+
directives_implementation_version.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
20+
directives_implementation_version.py:32: error: Expression is of type "int | str", not "int" [assert-type]
21+
directives_implementation_version.py:35: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
22+
directives_implementation_version.py:37: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
23+
directives_implementation_version.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
24+
directives_implementation_version.py:41: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
25+
"""
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
conformance_automated = "Pass"
2+
conformant = "Partial"
3+
notes = """
4+
Does not prune branches for tuple, set, or list membership and nonmembership checks.
5+
"""
6+
errors_diff = """
7+
"""
8+
output = """
9+
directives_platform_checks.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
10+
directives_platform_checks.py:24: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
11+
directives_platform_checks.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
12+
directives_platform_checks.py:48: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
13+
directives_platform_checks.py:65: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
14+
directives_platform_checks.py:66: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
15+
directives_platform_checks.py:78: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
16+
directives_platform_checks.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
17+
directives_platform_checks.py:94: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
18+
directives_platform_checks.py:100: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
19+
directives_platform_checks.py:113: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
20+
directives_platform_checks.py:119: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
21+
directives_platform_checks.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
22+
directives_platform_checks.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
23+
directives_platform_checks.py:147: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
24+
directives_platform_checks.py:153: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
25+
directives_platform_checks.py:162: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
26+
directives_platform_checks.py:168: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
27+
"""

‎conformance/results/mypy/directives_version_platform.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ directives_version_platform.py:33: error: Name "val3" is not defined; did you me
99
directives_version_platform.py:42: error: Expression is of type "int | str", not "int" [assert-type]
1010
directives_version_platform.py:50: error: Name "val6" is not defined [name-defined]
1111
directives_version_platform.py:59: error: Name "val9" is not defined [name-defined]
12+
directives_version_platform.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
13+
directives_version_platform.py:96: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
14+
directives_version_platform.py:111: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
1215
"""
1316
conformance_automated = "Pass"
1417
errors_diff = """
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
conformance_automated = "Fail"
2+
conformant = "Partial"
3+
notes = """
4+
Does not prune branches for negated platform membership or combinations involving implementation checks.
5+
"""
6+
errors_diff = """
7+
Line 115: Unexpected errors ['directives_version_platform_boolean.py:115: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
8+
Line 118: Unexpected errors ['directives_version_platform_boolean.py:118: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
9+
Line 120: Unexpected errors ['directives_version_platform_boolean.py:120: error: Expression is of type "int | str", not "int" [assert-type]']
10+
Line 123: Unexpected errors ['directives_version_platform_boolean.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
11+
Line 129: Unexpected errors ['directives_version_platform_boolean.py:129: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
12+
"""
13+
output = """
14+
directives_version_platform_boolean.py:17: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
15+
directives_version_platform_boolean.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
16+
directives_version_platform_boolean.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
17+
directives_version_platform_boolean.py:40: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
18+
directives_version_platform_boolean.py:50: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
19+
directives_version_platform_boolean.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
20+
directives_version_platform_boolean.py:58: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
21+
directives_version_platform_boolean.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
22+
directives_version_platform_boolean.py:73: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
23+
directives_version_platform_boolean.py:77: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
24+
directives_version_platform_boolean.py:81: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
25+
directives_version_platform_boolean.py:95: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
26+
directives_version_platform_boolean.py:110: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
27+
directives_version_platform_boolean.py:115: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
28+
directives_version_platform_boolean.py:118: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
29+
directives_version_platform_boolean.py:120: error: Expression is of type "int | str", not "int" [assert-type]
30+
directives_version_platform_boolean.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
31+
directives_version_platform_boolean.py:125: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
32+
directives_version_platform_boolean.py:129: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
33+
directives_version_platform_boolean.py:131: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
34+
"""

0 commit comments

Comments
 (0)