diff --git a/conformance/README.md b/conformance/README.md index 0b60a9490..8c51f521d 100644 --- a/conformance/README.md +++ b/conformance/README.md @@ -91,6 +91,32 @@ To add a new test, create a new ".py" file in the `tests` directory. Its name mu If a test is updated (augmented or fixed), the process is similar to when adding a new test. Run the conformance test tool to generate new results and manually examine the output of each supported type checker. Then update the conformance status accordingly. Once the conformance status has been updated, rerun the conformance test tool to regenerate the summary report. +## Version and Platform Checking Tests + +The version and implementation checks use the suite's Python 3.12 CPython target, +with no implementation override. Tests cover both reachable and unreachable +branches: intentional errors in reachable branches must be reported, errors in +unreachable branches must be suppressed, and `assert_type` checks verify branch +selection. Existing three-element version comparisons and `os.name` checks remain +optional; tuple, set, and list membership checks are required. + +Platform tests use nonexistent platform names for portable nonmatches and guard +positive Linux membership checks with `sys.platform == "linux"`. Tagged errors in +the outer `else` branch keep the expectations valid on non-Linux targets. Run on a +Linux target to exercise the positive membership cases. Prefix checks include the +empty prefix (always a match) and a nonexistent prefix (never a match). A guarded +`freebsd13` scenario tests a matching `freebsd` prefix and a nonmatching `linux` +prefix; run with a `freebsd13` target to exercise these branches. + +The ordinary suite does not validate all target configuration mechanisms. Separate +targeted runs are needed for Windows/Linux selection, the versioned FreeBSD +scenario, and non-CPython implementation versions distinct from the language version. +The current runner has no target-scenario matrix, and the checker CLIs examined +for this change expose language-version/platform options but no implementation-name +or implementation-version options. Non-CPython configuration coverage is therefore +deferred until suitable checker support is available; missing implementation-check +support is still recorded in the ordinary conformance results. + ## Updating a Type Checker Type checker versions are locked in `uv.lock`. diff --git a/conformance/results/mypy/directives_implementation_name.toml b/conformance/results/mypy/directives_implementation_name.toml new file mode 100644 index 000000000..595690e5f --- /dev/null +++ b/conformance/results/mypy/directives_implementation_name.toml @@ -0,0 +1,74 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.name equality or membership checks. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ['directives_implementation_name.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 23: Unexpected errors ['directives_implementation_name.py:23: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 27: Unexpected errors ['directives_implementation_name.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 32: Unexpected errors ['directives_implementation_name.py:32: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 36: Unexpected errors ['directives_implementation_name.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 42: Unexpected errors ['directives_implementation_name.py:42: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 44: Unexpected errors ['directives_implementation_name.py:44: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 54: Unexpected errors ['directives_implementation_name.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 56: Unexpected errors ['directives_implementation_name.py:56: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 60: Unexpected errors ['directives_implementation_name.py:60: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 65: Unexpected errors ['directives_implementation_name.py:65: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 68: Unexpected errors ['directives_implementation_name.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 74: Unexpected errors ['directives_implementation_name.py:74: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 84: Unexpected errors ['directives_implementation_name.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 86: Unexpected errors ['directives_implementation_name.py:86: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 90: Unexpected errors ['directives_implementation_name.py:90: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 95: Unexpected errors ['directives_implementation_name.py:95: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 98: Unexpected errors ['directives_implementation_name.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 104: Unexpected errors ['directives_implementation_name.py:104: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 114: Unexpected errors ['directives_implementation_name.py:114: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 116: Unexpected errors ['directives_implementation_name.py:116: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 120: Unexpected errors ['directives_implementation_name.py:120: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 125: Unexpected errors ['directives_implementation_name.py:125: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 128: Unexpected errors ['directives_implementation_name.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 134: Unexpected errors ['directives_implementation_name.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +""" +output = """ +directives_implementation_name.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:23: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:32: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:42: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:44: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:51: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:56: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:60: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:63: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:65: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:70: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:72: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:74: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:81: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:86: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:90: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:93: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:95: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:100: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:102: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:104: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:111: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:114: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:116: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:120: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:125: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_name.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:130: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:132: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_name.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +""" diff --git a/conformance/results/mypy/directives_implementation_version.toml b/conformance/results/mypy/directives_implementation_version.toml new file mode 100644 index 000000000..ba532781e --- /dev/null +++ b/conformance/results/mypy/directives_implementation_version.toml @@ -0,0 +1,25 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.version comparisons using the CPython target version. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ['directives_implementation_version.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 23: Unexpected errors ['directives_implementation_version.py:23: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 27: Unexpected errors ['directives_implementation_version.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 32: Unexpected errors ['directives_implementation_version.py:32: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 37: Unexpected errors ['directives_implementation_version.py:37: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 39: Unexpected errors ['directives_implementation_version.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +""" +output = """ +directives_implementation_version.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:21: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:23: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_version.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:32: error: Expression is of type "int | str", not "int" [assert-type] +directives_implementation_version.py:35: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:37: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:39: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_implementation_version.py:41: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +""" diff --git a/conformance/results/mypy/directives_platform_checks.toml b/conformance/results/mypy/directives_platform_checks.toml new file mode 100644 index 000000000..df27a0a43 --- /dev/null +++ b/conformance/results/mypy/directives_platform_checks.toml @@ -0,0 +1,63 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for tuple, set, or list membership and nonmembership checks. +""" +errors_diff = """ +Line 75: Unexpected errors ['directives_platform_checks.py:75: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 80: Unexpected errors ['directives_platform_checks.py:80: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 87: Unexpected errors ['directives_platform_checks.py:87: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 89: Unexpected errors ['directives_platform_checks.py:89: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 96: Unexpected errors ['directives_platform_checks.py:96: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 98: Unexpected errors ['directives_platform_checks.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 110: Unexpected errors ['directives_platform_checks.py:110: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 115: Unexpected errors ['directives_platform_checks.py:115: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 122: Unexpected errors ['directives_platform_checks.py:122: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 124: Unexpected errors ['directives_platform_checks.py:124: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 130: Unexpected errors ['directives_platform_checks.py:130: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 132: Unexpected errors ['directives_platform_checks.py:132: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 144: Unexpected errors ['directives_platform_checks.py:144: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 149: Unexpected errors ['directives_platform_checks.py:149: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 156: Unexpected errors ['directives_platform_checks.py:156: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 158: Unexpected errors ['directives_platform_checks.py:158: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 164: Unexpected errors ['directives_platform_checks.py:164: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 166: Unexpected errors ['directives_platform_checks.py:166: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +""" +output = """ +directives_platform_checks.py:18: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:24: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:36: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:48: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:65: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:66: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:75: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:78: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:80: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:87: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:89: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:94: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:96: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:98: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:100: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:110: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:113: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:115: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:119: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:122: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:124: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:128: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:130: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:132: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:134: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:144: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:147: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:149: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:153: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:156: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:158: error: Expression is of type "int | str", not "int" [assert-type] +directives_platform_checks.py:162: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:164: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:166: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_platform_checks.py:168: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +""" diff --git a/conformance/results/mypy/directives_version_platform.toml b/conformance/results/mypy/directives_version_platform.toml index 80c6eecff..e58a1916f 100644 --- a/conformance/results/mypy/directives_version_platform.toml +++ b/conformance/results/mypy/directives_version_platform.toml @@ -9,6 +9,9 @@ directives_version_platform.py:33: error: Name "val3" is not defined; did you me directives_version_platform.py:42: error: Expression is of type "int | str", not "int" [assert-type] directives_version_platform.py:50: error: Name "val6" is not defined [name-defined] directives_version_platform.py:59: error: Name "val9" is not defined [name-defined] +directives_version_platform.py:84: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform.py:96: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform.py:111: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] """ conformance_automated = "Pass" errors_diff = """ diff --git a/conformance/results/mypy/directives_version_platform_boolean.toml b/conformance/results/mypy/directives_version_platform_boolean.toml new file mode 100644 index 000000000..4a3aae5f8 --- /dev/null +++ b/conformance/results/mypy/directives_version_platform_boolean.toml @@ -0,0 +1,36 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for negated platform membership or combinations involving implementation checks. +""" +errors_diff = """ +Line 32: Unexpected errors ['directives_version_platform_boolean.py:32: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 115: Unexpected errors ['directives_version_platform_boolean.py:115: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 118: Unexpected errors ['directives_version_platform_boolean.py:118: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 120: Unexpected errors ['directives_version_platform_boolean.py:120: error: Expression is of type "int | str", not "int" [assert-type]'] +Line 123: Unexpected errors ['directives_version_platform_boolean.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +Line 129: Unexpected errors ['directives_version_platform_boolean.py:129: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]'] +""" +output = """ +directives_version_platform_boolean.py:17: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:27: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:30: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:32: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:40: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:50: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:54: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:58: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:68: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:73: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:77: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:81: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:95: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:110: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:115: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:118: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:120: error: Expression is of type "int | str", not "int" [assert-type] +directives_version_platform_boolean.py:123: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:125: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:129: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +directives_version_platform_boolean.py:131: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment] +""" diff --git a/conformance/results/pycroscope/directives_implementation_name.toml b/conformance/results/pycroscope/directives_implementation_name.toml new file mode 100644 index 000000000..3656c2c8e --- /dev/null +++ b/conformance/results/pycroscope/directives_implementation_name.toml @@ -0,0 +1,74 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.name equality or membership checks. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ["./directives_implementation_name.py:21:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 23: Unexpected errors ['./directives_implementation_name.py:23:16: int | str is not equivalent to int'] +Line 27: Unexpected errors ["./directives_implementation_name.py:27:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 32: Unexpected errors ['./directives_implementation_name.py:32:16: str | int is not equivalent to int'] +Line 36: Unexpected errors ["./directives_implementation_name.py:36:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 42: Unexpected errors ["./directives_implementation_name.py:42:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 44: Unexpected errors ['./directives_implementation_name.py:44:16: str | int is not equivalent to int'] +Line 54: Unexpected errors ["./directives_implementation_name.py:54:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 56: Unexpected errors ['./directives_implementation_name.py:56:16: int | str is not equivalent to int'] +Line 60: Unexpected errors ["./directives_implementation_name.py:60:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 65: Unexpected errors ['./directives_implementation_name.py:65:16: str | int is not equivalent to int'] +Line 68: Unexpected errors ["./directives_implementation_name.py:68:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 74: Unexpected errors ["./directives_implementation_name.py:74:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 84: Unexpected errors ["./directives_implementation_name.py:84:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 86: Unexpected errors ['./directives_implementation_name.py:86:16: int | str is not equivalent to int'] +Line 90: Unexpected errors ["./directives_implementation_name.py:90:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 95: Unexpected errors ['./directives_implementation_name.py:95:16: str | int is not equivalent to int'] +Line 98: Unexpected errors ["./directives_implementation_name.py:98:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 104: Unexpected errors ["./directives_implementation_name.py:104:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 114: Unexpected errors ["./directives_implementation_name.py:114:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 116: Unexpected errors ['./directives_implementation_name.py:116:16: int | str is not equivalent to int'] +Line 120: Unexpected errors ["./directives_implementation_name.py:120:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 125: Unexpected errors ['./directives_implementation_name.py:125:16: str | int is not equivalent to int'] +Line 128: Unexpected errors ["./directives_implementation_name.py:128:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 134: Unexpected errors ["./directives_implementation_name.py:134:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +""" +output = """ +./directives_implementation_name.py:18:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:21:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:23:16: int | str is not equivalent to int +./directives_implementation_name.py:27:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:30:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:32:16: str | int is not equivalent to int +./directives_implementation_name.py:36:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:39:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:42:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:44:16: str | int is not equivalent to int +./directives_implementation_name.py:51:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:54:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:56:16: int | str is not equivalent to int +./directives_implementation_name.py:60:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:63:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:65:16: str | int is not equivalent to int +./directives_implementation_name.py:68:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:70:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:72:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:74:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:81:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:84:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:86:16: int | str is not equivalent to int +./directives_implementation_name.py:90:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:93:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:95:16: str | int is not equivalent to int +./directives_implementation_name.py:98:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:100:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:102:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:104:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:111:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:114:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:116:16: int | str is not equivalent to int +./directives_implementation_name.py:120:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:123:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:125:16: str | int is not equivalent to int +./directives_implementation_name.py:128:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_name.py:130:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:132:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_name.py:134:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +""" diff --git a/conformance/results/pycroscope/directives_implementation_version.toml b/conformance/results/pycroscope/directives_implementation_version.toml new file mode 100644 index 000000000..9905857c1 --- /dev/null +++ b/conformance/results/pycroscope/directives_implementation_version.toml @@ -0,0 +1,25 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.version comparisons using the CPython target version. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ["./directives_implementation_version.py:21:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 23: Unexpected errors ['./directives_implementation_version.py:23:16: int | str is not equivalent to int'] +Line 27: Unexpected errors ["./directives_implementation_version.py:27:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 32: Unexpected errors ['./directives_implementation_version.py:32:16: str | int is not equivalent to int'] +Line 37: Unexpected errors ["./directives_implementation_version.py:37:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 39: Unexpected errors ["./directives_implementation_version.py:39:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +""" +output = """ +./directives_implementation_version.py:18:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_version.py:21:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_version.py:23:16: int | str is not equivalent to int +./directives_implementation_version.py:27:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_version.py:30:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_version.py:32:16: str | int is not equivalent to int +./directives_implementation_version.py:35:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_implementation_version.py:37:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_version.py:39:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_implementation_version.py:41:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +""" diff --git a/conformance/results/pycroscope/directives_platform_checks.toml b/conformance/results/pycroscope/directives_platform_checks.toml new file mode 100644 index 000000000..15997fccb --- /dev/null +++ b/conformance/results/pycroscope/directives_platform_checks.toml @@ -0,0 +1,71 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for startswith or tuple, set, or list membership and nonmembership checks. +""" +errors_diff = """ +Line 39: Unexpected errors ["./directives_platform_checks.py:39:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 41: Unexpected errors ['./directives_platform_checks.py:41:16: int | str is not equivalent to int'] +Line 45: Unexpected errors ["./directives_platform_checks.py:45:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 50: Unexpected errors ['./directives_platform_checks.py:50:16: str | int is not equivalent to int'] +Line 75: Unexpected errors ["./directives_platform_checks.py:75:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 80: Unexpected errors ['./directives_platform_checks.py:80:16: str | int is not equivalent to int'] +Line 87: Unexpected errors ["./directives_platform_checks.py:87:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 89: Unexpected errors ['./directives_platform_checks.py:89:16: int | str is not equivalent to int'] +Line 96: Unexpected errors ["./directives_platform_checks.py:96:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 98: Unexpected errors ["./directives_platform_checks.py:98:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 110: Unexpected errors ["./directives_platform_checks.py:110:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 115: Unexpected errors ['./directives_platform_checks.py:115:16: str | int is not equivalent to int'] +Line 122: Unexpected errors ["./directives_platform_checks.py:122:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 124: Unexpected errors ['./directives_platform_checks.py:124:16: int | str is not equivalent to int'] +Line 130: Unexpected errors ["./directives_platform_checks.py:130:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 132: Unexpected errors ["./directives_platform_checks.py:132:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 144: Unexpected errors ["./directives_platform_checks.py:144:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 149: Unexpected errors ['./directives_platform_checks.py:149:16: str | int is not equivalent to int'] +Line 156: Unexpected errors ["./directives_platform_checks.py:156:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 158: Unexpected errors ['./directives_platform_checks.py:158:16: int | str is not equivalent to int'] +Line 164: Unexpected errors ["./directives_platform_checks.py:164:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 166: Unexpected errors ["./directives_platform_checks.py:166:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +""" +output = """ +./directives_platform_checks.py:18:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:24:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:36:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:39:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:41:16: int | str is not equivalent to int +./directives_platform_checks.py:45:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:48:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:50:16: str | int is not equivalent to int +./directives_platform_checks.py:65:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:66:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:75:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:78:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:80:16: str | int is not equivalent to int +./directives_platform_checks.py:84:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:87:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:89:16: int | str is not equivalent to int +./directives_platform_checks.py:94:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:96:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:98:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:100:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:110:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:113:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:115:16: str | int is not equivalent to int +./directives_platform_checks.py:119:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:122:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:124:16: int | str is not equivalent to int +./directives_platform_checks.py:128:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:130:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:132:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:134:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:144:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:147:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:149:16: str | int is not equivalent to int +./directives_platform_checks.py:153:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:156:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:158:16: int | str is not equivalent to int +./directives_platform_checks.py:162:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_platform_checks.py:164:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:166:12: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_platform_checks.py:168:12: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +""" diff --git a/conformance/results/pycroscope/directives_version_platform.toml b/conformance/results/pycroscope/directives_version_platform.toml index a6ce7215d..3ca982d04 100644 --- a/conformance/results/pycroscope/directives_version_platform.toml +++ b/conformance/results/pycroscope/directives_version_platform.toml @@ -9,4 +9,7 @@ output = """ ./directives_version_platform.py:67:21: val11 may be used uninitialized [possibly_undefined_name] ./directives_version_platform.py:74:21: val12 may be used uninitialized [possibly_undefined_name] ./directives_version_platform.py:75:18: val13 may be used uninitialized [possibly_undefined_name] +./directives_version_platform.py:84:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform.py:96:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform.py:111:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] """ diff --git a/conformance/results/pycroscope/directives_version_platform_boolean.toml b/conformance/results/pycroscope/directives_version_platform_boolean.toml new file mode 100644 index 000000000..cf423f9b9 --- /dev/null +++ b/conformance/results/pycroscope/directives_version_platform_boolean.toml @@ -0,0 +1,49 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not fully prune branches for and/or combinations of version and platform checks. +Does not prune branches for negated platform membership or combinations involving implementation checks. +""" +errors_diff = """ +Line 32: Unexpected errors ["./directives_version_platform_boolean.py:32:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 43: Unexpected errors ["./directives_version_platform_boolean.py:43:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 45: Unexpected errors ['./directives_version_platform_boolean.py:45:16: int | str is not equivalent to int'] +Line 65: Unexpected errors ["./directives_version_platform_boolean.py:65:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 70: Unexpected errors ['./directives_version_platform_boolean.py:70:16: str | int is not equivalent to int'] +Line 98: Unexpected errors ["./directives_version_platform_boolean.py:98:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 100: Unexpected errors ['./directives_version_platform_boolean.py:100:16: int | str is not equivalent to int'] +Line 115: Unexpected errors ["./directives_version_platform_boolean.py:115:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 118: Unexpected errors ["./directives_version_platform_boolean.py:118:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 120: Unexpected errors ['./directives_version_platform_boolean.py:120:16: int | str is not equivalent to int'] +Line 123: Unexpected errors ["./directives_version_platform_boolean.py:123:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +Line 129: Unexpected errors ["./directives_version_platform_boolean.py:129:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment]"] +""" +output = """ +./directives_version_platform_boolean.py:17:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:27:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:30:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:32:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:40:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:43:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:45:16: int | str is not equivalent to int +./directives_version_platform_boolean.py:50:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:54:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:58:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:65:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:68:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:70:16: str | int is not equivalent to int +./directives_version_platform_boolean.py:73:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:77:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:81:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:95:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:98:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:100:16: int | str is not equivalent to int +./directives_version_platform_boolean.py:110:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:115:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:118:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:120:16: int | str is not equivalent to int +./directives_version_platform_boolean.py:123:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:125:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:129:8: Incompatible assignment: expected int, got Literal['unreachable'] [incompatible_assignment] +./directives_version_platform_boolean.py:131:8: Incompatible assignment: expected int, got Literal['reachable'] [incompatible_assignment] +""" diff --git a/conformance/results/pyrefly/directives_implementation_name.toml b/conformance/results/pyrefly/directives_implementation_name.toml new file mode 100644 index 000000000..914dcc17f --- /dev/null +++ b/conformance/results/pyrefly/directives_implementation_name.toml @@ -0,0 +1,74 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.name equality or membership checks. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 23: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 27: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 32: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 36: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 42: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 44: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 54: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 56: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 60: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 65: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 68: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 74: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 84: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 86: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 90: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 95: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 98: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 104: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 114: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 116: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 120: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 125: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 128: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 134: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +""" +output = """ +ERROR directives_implementation_name.py:18:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:21:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:23:16-28: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:27:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:30:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:32:16-30: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:36:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:39:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:42:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:44:16-28: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:51:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:54:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:56:16-32: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:60:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:63:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:65:16-31: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:68:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:70:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:72:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:74:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:81:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:84:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:86:16-32: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:90:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:93:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:95:16-31: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:98:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:100:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:102:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:104:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:111:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:114:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:116:16-32: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:120:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:123:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:125:16-31: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_name.py:128:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:130:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:132:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_name.py:134:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +""" diff --git a/conformance/results/pyrefly/directives_implementation_version.toml b/conformance/results/pyrefly/directives_implementation_version.toml new file mode 100644 index 000000000..d81c12d72 --- /dev/null +++ b/conformance/results/pyrefly/directives_implementation_version.toml @@ -0,0 +1,25 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.version comparisons using the CPython target version. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 23: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 27: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 32: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 37: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 39: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +""" +output = """ +ERROR directives_implementation_version.py:18:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:21:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:23:16-34: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_version.py:27:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:30:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:32:16-37: assert_type(int | str, int) failed [assert-type] +ERROR directives_implementation_version.py:35:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:37:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:39:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_implementation_version.py:41:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +""" diff --git a/conformance/results/pyrefly/directives_platform_checks.toml b/conformance/results/pyrefly/directives_platform_checks.toml new file mode 100644 index 000000000..8a55b452e --- /dev/null +++ b/conformance/results/pyrefly/directives_platform_checks.toml @@ -0,0 +1,23 @@ +conformance_automated = "Pass" +errors_diff = """ +""" +output = """ +ERROR directives_platform_checks.py:18:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:24:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:36:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:48:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:65:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:66:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:78:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:84:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:94:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:100:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:113:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:119:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:128:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:134:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:147:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:153:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:162:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_platform_checks.py:168:21-32: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +""" diff --git a/conformance/results/pyrefly/directives_version_platform.toml b/conformance/results/pyrefly/directives_version_platform.toml index 562bdae49..d86833ae6 100644 --- a/conformance/results/pyrefly/directives_version_platform.toml +++ b/conformance/results/pyrefly/directives_version_platform.toml @@ -8,4 +8,7 @@ ERROR directives_version_platform.py:50:19-23: Could not find name `val6` [unkno ERROR directives_version_platform.py:59:19-23: Could not find name `val9` [unknown-name] ERROR directives_version_platform.py:66:19-24: Could not find name `val10` [unknown-name] ERROR directives_version_platform.py:75:19-24: Could not find name `val13` [unknown-name] +ERROR directives_version_platform.py:84:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform.py:96:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform.py:111:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] """ diff --git a/conformance/results/pyrefly/directives_version_platform_boolean.toml b/conformance/results/pyrefly/directives_version_platform_boolean.toml new file mode 100644 index 000000000..a44210baa --- /dev/null +++ b/conformance/results/pyrefly/directives_version_platform_boolean.toml @@ -0,0 +1,34 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for combinations involving implementation checks. +""" +errors_diff = """ +Line 115: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 118: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 120: Unexpected errors ['assert_type(int | str, int) failed [assert-type]'] +Line 123: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +Line 129: Unexpected errors ["`Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment]"] +""" +output = """ +ERROR directives_version_platform_boolean.py:17:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:27:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:30:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:40:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:50:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:54:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:58:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:68:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:73:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:77:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:81:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:95:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:110:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:115:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:118:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:120:16-31: assert_type(int | str, int) failed [assert-type] +ERROR directives_version_platform_boolean.py:123:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:125:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:129:17-30: `Literal['unreachable']` is not assignable to variable `error` with type `int` [bad-assignment] +ERROR directives_version_platform_boolean.py:131:17-28: `Literal['reachable']` is not assignable to variable `error` with type `int` [bad-assignment] +""" diff --git a/conformance/results/pyright/directives_implementation_name.toml b/conformance/results/pyright/directives_implementation_name.toml new file mode 100644 index 000000000..4b3593c9d --- /dev/null +++ b/conformance/results/pyright/directives_implementation_name.toml @@ -0,0 +1,105 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.name equality or membership checks. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ['directives_implementation_name.py:21:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 23: Unexpected errors ['directives_implementation_name.py:23:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 27: Unexpected errors ['directives_implementation_name.py:27:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 32: Unexpected errors ['directives_implementation_name.py:32:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 36: Unexpected errors ['directives_implementation_name.py:36:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 42: Unexpected errors ['directives_implementation_name.py:42:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 44: Unexpected errors ['directives_implementation_name.py:44:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 54: Unexpected errors ['directives_implementation_name.py:54:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 56: Unexpected errors ['directives_implementation_name.py:56:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 60: Unexpected errors ['directives_implementation_name.py:60:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 65: Unexpected errors ['directives_implementation_name.py:65:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 68: Unexpected errors ['directives_implementation_name.py:68:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 74: Unexpected errors ['directives_implementation_name.py:74:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 84: Unexpected errors ['directives_implementation_name.py:84:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 86: Unexpected errors ['directives_implementation_name.py:86:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 90: Unexpected errors ['directives_implementation_name.py:90:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 95: Unexpected errors ['directives_implementation_name.py:95:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 98: Unexpected errors ['directives_implementation_name.py:98:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 104: Unexpected errors ['directives_implementation_name.py:104:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 114: Unexpected errors ['directives_implementation_name.py:114:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 116: Unexpected errors ['directives_implementation_name.py:116:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 120: Unexpected errors ['directives_implementation_name.py:120:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 125: Unexpected errors ['directives_implementation_name.py:125:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 128: Unexpected errors ['directives_implementation_name.py:128:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 134: Unexpected errors ['directives_implementation_name.py:134:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +""" +output = """ +directives_implementation_name.py:18:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:21:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:23:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_implementation_name.py:27:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:30:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:32:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_name.py:36:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:39:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:42:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:44:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_name.py:51:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:54:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:56:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_implementation_name.py:60:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:63:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:65:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_name.py:68:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:70:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:72:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:74:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:81:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:84:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:86:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_implementation_name.py:90:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:93:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:95:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_name.py:98:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:100:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:102:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:104:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:111:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:114:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:116:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_implementation_name.py:120:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:123:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:125:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_name.py:128:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:130:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:132:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_name.py:134:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +""" diff --git a/conformance/results/pyright/directives_implementation_version.toml b/conformance/results/pyright/directives_implementation_version.toml new file mode 100644 index 000000000..005c16744 --- /dev/null +++ b/conformance/results/pyright/directives_implementation_version.toml @@ -0,0 +1,33 @@ +conformant = "Unsupported" +notes = """ +Does not prune branches for sys.implementation.version comparisons using the CPython target version. +""" +conformance_automated = "Fail" +errors_diff = """ +Line 21: Unexpected errors ['directives_implementation_version.py:21:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 23: Unexpected errors ['directives_implementation_version.py:23:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 27: Unexpected errors ['directives_implementation_version.py:27:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 32: Unexpected errors ['directives_implementation_version.py:32:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 37: Unexpected errors ['directives_implementation_version.py:37:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 39: Unexpected errors ['directives_implementation_version.py:39:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +""" +output = """ +directives_implementation_version.py:18:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:21:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:23:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_implementation_version.py:27:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:30:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:32:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_implementation_version.py:35:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:37:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:39:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_implementation_version.py:41:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +""" diff --git a/conformance/results/pyright/directives_platform_checks.toml b/conformance/results/pyright/directives_platform_checks.toml new file mode 100644 index 000000000..86e80d1e4 --- /dev/null +++ b/conformance/results/pyright/directives_platform_checks.toml @@ -0,0 +1,103 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for startswith or tuple, set, or list membership and nonmembership checks. +""" +errors_diff = """ +Line 39: Unexpected errors ['directives_platform_checks.py:39:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 41: Unexpected errors ['directives_platform_checks.py:41:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 45: Unexpected errors ['directives_platform_checks.py:45:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 50: Unexpected errors ['directives_platform_checks.py:50:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 75: Unexpected errors ['directives_platform_checks.py:75:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 80: Unexpected errors ['directives_platform_checks.py:80:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 87: Unexpected errors ['directives_platform_checks.py:87:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 89: Unexpected errors ['directives_platform_checks.py:89:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 96: Unexpected errors ['directives_platform_checks.py:96:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 98: Unexpected errors ['directives_platform_checks.py:98:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 110: Unexpected errors ['directives_platform_checks.py:110:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 115: Unexpected errors ['directives_platform_checks.py:115:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 122: Unexpected errors ['directives_platform_checks.py:122:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 124: Unexpected errors ['directives_platform_checks.py:124:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 130: Unexpected errors ['directives_platform_checks.py:130:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 132: Unexpected errors ['directives_platform_checks.py:132:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 144: Unexpected errors ['directives_platform_checks.py:144:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 149: Unexpected errors ['directives_platform_checks.py:149:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure)'] +Line 156: Unexpected errors ['directives_platform_checks.py:156:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 158: Unexpected errors ['directives_platform_checks.py:158:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 164: Unexpected errors ['directives_platform_checks.py:164:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 166: Unexpected errors ['directives_platform_checks.py:166:21 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +""" +output = """ +directives_platform_checks.py:18:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:24:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:36:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:39:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:41:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_platform_checks.py:45:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:48:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:50:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_platform_checks.py:65:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:66:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:75:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:78:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:80:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_platform_checks.py:84:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:87:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:89:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_platform_checks.py:94:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:96:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:98:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:100:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:110:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:113:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:115:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_platform_checks.py:119:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:122:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:124:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_platform_checks.py:128:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:130:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:132:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:134:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:144:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:147:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:149:17 - error: "assert_type" mismatch: expected "int" but received "str | int" (reportAssertTypeFailure) +directives_platform_checks.py:153:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:156:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:158:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_platform_checks.py:162:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:164:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:166:21 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_platform_checks.py:168:21 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +""" diff --git a/conformance/results/pyright/directives_version_platform.toml b/conformance/results/pyright/directives_version_platform.toml index e37efb6b3..592f8be68 100644 --- a/conformance/results/pyright/directives_version_platform.toml +++ b/conformance/results/pyright/directives_version_platform.toml @@ -5,6 +5,12 @@ directives_version_platform.py:50:19 - error: "val6" is not defined (reportUndef directives_version_platform.py:59:19 - error: "val9" is not defined (reportUndefinedVariable) directives_version_platform.py:66:19 - error: "val10" is not defined (reportUndefinedVariable) directives_version_platform.py:75:19 - error: "val13" is not defined (reportUndefinedVariable) +directives_version_platform.py:84:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform.py:96:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform.py:111:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) """ conformance_automated = "Pass" errors_diff = """ diff --git a/conformance/results/pyright/directives_version_platform_boolean.toml b/conformance/results/pyright/directives_version_platform_boolean.toml new file mode 100644 index 000000000..aed8381cf --- /dev/null +++ b/conformance/results/pyright/directives_version_platform_boolean.toml @@ -0,0 +1,56 @@ +conformance_automated = "Fail" +conformant = "Partial" +notes = """ +Does not prune branches for negated platform membership or combinations involving implementation checks. +""" +errors_diff = """ +Line 32: Unexpected errors ['directives_version_platform_boolean.py:32:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 115: Unexpected errors ['directives_version_platform_boolean.py:115:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 118: Unexpected errors ['directives_version_platform_boolean.py:118:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 120: Unexpected errors ['directives_version_platform_boolean.py:120:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure)'] +Line 123: Unexpected errors ['directives_version_platform_boolean.py:123:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +Line 129: Unexpected errors ['directives_version_platform_boolean.py:129:17 - error: Type "Literal[\\'unreachable\\']" is not assignable to declared type "int"'] +""" +output = """ +directives_version_platform_boolean.py:17:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:27:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:30:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:32:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:40:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:50:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:54:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:58:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:68:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:73:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:77:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:81:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:95:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:110:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:115:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:118:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:120:17 - error: "assert_type" mismatch: expected "int" but received "int | str" (reportAssertTypeFailure) +directives_version_platform_boolean.py:123:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:125:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:129:17 - error: Type "Literal['unreachable']" is not assignable to declared type "int" +Â Â "Literal['unreachable']" is not assignable to "int" (reportAssignmentType) +directives_version_platform_boolean.py:131:17 - error: Type "Literal['reachable']" is not assignable to declared type "int" +Â Â "Literal['reachable']" is not assignable to "int" (reportAssignmentType) +""" diff --git a/conformance/results/results.html b/conformance/results/results.html index 7c89516d1..21abfed37 100644 --- a/conformance/results/results.html +++ b/conformance/results/results.html @@ -2602,6 +2602,84 @@