style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ key pair and a blocking request to its host.
from __future__ import annotations
import logging
from typing import Any, Optional
from typing import Any
import pytest
@@ -32,7 +32,7 @@ def builds(monkeypatch) -> list[tuple[str, str]]:
"""Record every ``load_cdm`` call and hand back a fresh stub for each one."""
calls: list[tuple[str, str]] = []
def fake_load_cdm(cdm_name: str, *, service_name: str = "", vaults: Optional[Any] = None) -> StubCdm:
def fake_load_cdm(cdm_name: str, *, service_name: str = "", vaults: Any | None = None) -> StubCdm:
calls.append((cdm_name, service_name))
return StubCdm(cdm_name, service_name)