Skip to content

Commit 8214b19

Browse files
committed
style: Fix ruff linting error in testdaemon.py
1 parent d310b2d commit 8214b19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy/test/testdaemon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def run_cmd(input: str) -> tuple[int, str]:
8282
is_pretty_test = "# NO-MODIFY" in input
8383
modified_input = input.replace('# NO-MODIFY', '').strip()
8484
cond1 = '--pretty' not in modified_input
85-
cond2 = modified_input.startswith("dmypy run") or \
86-
modified_input.startswith("dmypy check ")
85+
cond2 = modified_input.startswith(("dmypy run", "dmypy check"))
8786
cond3 = not is_pretty_test
8887
if cond1 and cond2 and cond3:
8988
parts = modified_input.split(' ', 2)

0 commit comments

Comments
 (0)