[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-03-31 11:32:14 +00:00
commit 4dc1dcaaec
3 changed files with 32 additions and 12 deletions

View file

@ -117,10 +117,10 @@ def _has_usable_nvidia_gpu() -> bool:
try:
result = subprocess.run(
[exe, "-L"],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
text=True,
timeout=10,
stdout = subprocess.PIPE,
stderr = subprocess.DEVNULL,
text = True,
timeout = 10,
)
except Exception:
return False