Ruff: Add and fix UP rules

This commit is contained in:
Josh Wu
2026-01-01 03:07:06 +08:00
parent 8e28f4e159
commit 3f643de4c1
102 changed files with 922 additions and 999 deletions

View File

@@ -18,7 +18,6 @@
import asyncio
import logging
import os
from typing import Optional
import pytest
import pytest_asyncio
@@ -113,8 +112,8 @@ def _default_ag_sdp_features() -> hfp.AgSdpFeature:
# -----------------------------------------------------------------------------
async def make_hfp_connections(
hf_config: Optional[hfp.HfConfiguration] = None,
ag_config: Optional[hfp.AgConfiguration] = None,
hf_config: hfp.HfConfiguration | None = None,
ag_config: hfp.AgConfiguration | None = None,
):
if not hf_config:
hf_config = _default_hf_configuration()