We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d310b2d commit 8214b19Copy full SHA for 8214b19
mypy/test/testdaemon.py
@@ -82,8 +82,7 @@ def run_cmd(input: str) -> tuple[int, str]:
82
is_pretty_test = "# NO-MODIFY" in input
83
modified_input = input.replace('# NO-MODIFY', '').strip()
84
cond1 = '--pretty' not in modified_input
85
- cond2 = modified_input.startswith("dmypy run") or \
86
- modified_input.startswith("dmypy check ")
+ cond2 = modified_input.startswith(("dmypy run", "dmypy check"))
87
cond3 = not is_pretty_test
88
if cond1 and cond2 and cond3:
89
parts = modified_input.split(' ', 2)
0 commit comments