Skip to content

Commit ca2d2b5

Browse files
authored
Turns out we need misc for other things:
``` tests/eval_files/exception_suppress_context_manager.py:139: error: Cannot assign to a type [misc] tests/eval_files/exception_suppress_context_manager.py:139: note: Error code "misc" not covered by "type: ignore" comment tests/eval_files/async124.py:87: error: Single overload definition, multiple required [misc] tests/eval_files/async104.py:194: error: "return" outside function [misc] tests/eval_files/async104.py:198: error: "return" outside function [misc] tests/autofix_files/exception_suppress_context_manager.py:152: error: Cannot assign to a type [misc] tests/autofix_files/exception_suppress_context_manager.py:152: note: Error code "misc" not covered by "type: ignore" comment tests/autofix_files/async124.py:96: error: Single overload definition, multiple required [misc] flake8_async/visitors/flake8asyncvisitor.py:160: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] flake8_async/visitors/visitor91x.py:237: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] ```
1 parent 925b99d commit ca2d2b5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ skip_glob = "tests/*_files/*"
5353

5454
[tool.mypy]
5555
check_untyped_defs = true
56-
disable_error_code = ["no-untyped-def", "untyped-decorator", "no-untyped-call", "no-any-return"]
56+
disable_error_code = [
57+
"no-untyped-def",
58+
"no-untyped-call",
59+
"no-any-return",
60+
"misc",
61+
# things like `@pytest.fixture` are untyped in pre-commit
62+
"untyped-decorator",
63+
]
5764
python_version = "3.10"
5865
strict = true
5966
warn_unreachable = true

0 commit comments

Comments
 (0)