Skip to content

Commit 64990f8

Browse files
committed
another check
1 parent 2c1adf1 commit 64990f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

conformance/results/mypy/constructors_call_metaclass.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
conformant = "Unupported"
1+
conformant = "Unsupported"
22
notes = """
33
Does not honor metaclass __call__ method when evaluating constructor call.
44
Does not skip evaluation of __new__ and __init__ if custom metaclass call returns non-class.

conformance/src/validate_results.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def _validate_result(file: Path, results_dir: Path, info: dict[str, Any]) -> lis
6161
)
6262
return issues
6363
elif isinstance(conformant, str):
64+
if conformant not in ("Pass", "Partial", "Unsupported"):
65+
issues.append(f"{rel_path}: invalid conformance status {conformant!r}")
6466
conformant_is_pass = conformant == "Pass"
6567
else:
6668
issues.append(f"{rel_path}: conformant must be a string when present")

0 commit comments

Comments
 (0)