Skip to content

Commit 51ac393

Browse files
committed
Ignore redundant casts during testing
1 parent a9a66d8 commit 51ac393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/mypy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def test_check_files(filepath: Path) -> None:
1616
sys.modules.pop("plugin", None) # required for plugin to work correctly
1717
stdout, stderr, _exit_code = mypy.api.run(
18-
[str(filepath), "--cache-dir", os.devnull, "--show-traceback"]
18+
[str(filepath), "--cache-dir", os.devnull, "--show-traceback", "--no-warn-redundant-casts"]
1919
)
2020
stdout = stdout.replace(os.getcwd(), "[CWD]")
2121
assert stderr == "", stderr

0 commit comments

Comments
 (0)