fix(types): T1 — remove 15 stale type: ignore comments confirmed unused by mypy
This commit is contained in:
@@ -32,7 +32,7 @@ router = APIRouter(prefix="/deckies/{decky_name}/tarpit", tags=["Deckies"])
|
||||
_DECKY_RE = r"^[a-z0-9\-]{1,64}$"
|
||||
|
||||
|
||||
def _tc(*args: str) -> subprocess.CompletedProcess: # type: ignore[type-arg]
|
||||
def _tc(*args: str) -> subprocess.CompletedProcess[str]:
|
||||
cmd = ["tc", *args]
|
||||
return subprocess.run(cmd, capture_output=True, text=True) # nosec B603 B404
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ class WorkerRegistry:
|
||||
payload.pop("ts", None)
|
||||
out.append(WorkerStatus(
|
||||
name=name,
|
||||
status=status, # type: ignore[arg-type]
|
||||
status=status,
|
||||
last_heartbeat_ts=ts,
|
||||
seconds_since=seconds_since,
|
||||
extra=payload,
|
||||
|
||||
Reference in New Issue
Block a user