Skip to content

Commit eefe312

Browse files
committed
Update inspect command debug printing
1 parent 1d64724 commit eefe312

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/idlemypyextension/extension.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,17 @@ async def dmypy_inspect(
799799
"""Return result from dmypy inspect."""
800800
if await self.ensure_daemon_running():
801801
command = " ".join(
802-
(
802+
x
803+
for x in (
803804
"dmypy",
804805
f"--status-file='{self.status_file}'",
805806
"inspect",
806807
f"--show={show!r}",
807-
"--include-span",
808+
("--include-span" if include_span else ""),
808809
"--force-reload",
809810
f"{location!r}",
810-
),
811+
)
812+
if x
811813
)
812814
debug(f"{command = }")
813815

0 commit comments

Comments
 (0)