Skip to content

Commit d0890ed

Browse files
committed
Clean up unused imports and variables
Removed unused AsyncGenerator import from nativeupload.py and cleaned up unused stdout variable in tests/conftest.py for better code clarity.
1 parent b378e94 commit d0890ed

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dvuploader/nativeupload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import tempfile
55
from io import BytesIO
66
from pathlib import Path
7-
from typing import IO, AsyncGenerator, Dict, List, Optional, Tuple
7+
from typing import IO, Dict, List, Optional, Tuple
88

99
import httpx
1010
import rich

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def http_proxy_server():
159159
except TimeoutError:
160160
# Collect logs for debugging and skip the test instead of failing hard
161161
try:
162-
stdout, stderr = proc.communicate(timeout=1)
162+
_, stderr = proc.communicate(timeout=1)
163163
except Exception:
164-
stdout, stderr = (b"", b"")
164+
_, stderr = (b"", b"")
165165
msg = (
166166
"Proxy did not start on "
167167
f"{host}:{port}. stderr: {stderr.decode(errors='ignore').strip()}"

0 commit comments

Comments
 (0)