diff --git a/conformance/results/pyright/protocols_definition.toml b/conformance/results/pyright/protocols_definition.toml index c1b932663..02ea57ba4 100644 --- a/conformance/results/pyright/protocols_definition.toml +++ b/conformance/results/pyright/protocols_definition.toml @@ -96,3 +96,4 @@ protocols_definition.py:341:22 - error: Expression of type "Concrete6_Bad3" cann conformance_automated = "Pass" errors_diff = """ """ +ignore_errors = ["Static methods should not take a \"self\" or \"cls\" parameter"] diff --git a/conformance/results/pyright/protocols_variance.toml b/conformance/results/pyright/protocols_variance.toml index 4b464f330..041ce276a 100644 --- a/conformance/results/pyright/protocols_variance.toml +++ b/conformance/results/pyright/protocols_variance.toml @@ -10,13 +10,6 @@ protocols_variance.py:71:7 - warning: Type variable "T1_contra" used in generic protocols_variance.py:72:21 - error: Contravariant type variable cannot be used in return type (reportGeneralTypeIssues) protocols_variance.py:104:7 - warning: Type variable "T1" used in generic protocol "Protocol12" should be covariant (reportInvalidTypeVarUse) """ -conformance_automated = "Fail" +conformance_automated = "Pass" errors_diff = """ -Line 21: Expected 1 errors -Line 40: Expected 1 errors -Line 56: Expected 1 errors -Line 61: Expected 1 errors -Line 66: Expected 1 errors -Line 71: Expected 1 errors -Line 104: Expected 1 errors """ diff --git a/conformance/results/pyright/qualifiers_final_decorator.toml b/conformance/results/pyright/qualifiers_final_decorator.toml index c9be34c42..54cbee74d 100644 --- a/conformance/results/pyright/qualifiers_final_decorator.toml +++ b/conformance/results/pyright/qualifiers_final_decorator.toml @@ -18,3 +18,4 @@ qualifiers_final_decorator.py:126:5 - error: Function "func1" cannot be marked @ conformance_automated = "Pass" errors_diff = """ """ +ignore_errors = ["reportMissingModuleSource"] diff --git a/conformance/src/type_checker.py b/conformance/src/type_checker.py index 922870afc..6ea9d743f 100644 --- a/conformance/src/type_checker.py +++ b/conformance/src/type_checker.py @@ -191,7 +191,7 @@ def parse_errors(self, output: Sequence[str]) -> dict[int, list[str]]: assert line.count(":") >= 3, f"Failed to parse line: {line!r}" _, lineno, kind, _ = line.split(":", maxsplit=3) kind = kind.split()[-1] - if kind != "error": + if kind not in ("error", "warning"): continue line_to_errors.setdefault(int(lineno), []).append(line) return line_to_errors