We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d64724 commit eefe312Copy full SHA for eefe312
src/idlemypyextension/extension.py
@@ -799,15 +799,17 @@ async def dmypy_inspect(
799
"""Return result from dmypy inspect."""
800
if await self.ensure_daemon_running():
801
command = " ".join(
802
- (
+ x
803
+ for x in (
804
"dmypy",
805
f"--status-file='{self.status_file}'",
806
"inspect",
807
f"--show={show!r}",
- "--include-span",
808
+ ("--include-span" if include_span else ""),
809
"--force-reload",
810
f"{location!r}",
- ),
811
+ )
812
+ if x
813
)
814
debug(f"{command = }")
815
0 commit comments