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

@@ -20,7 +20,7 @@ import io
import json
import logging
import sys
from typing import Iterable, Optional
from collections.abc import Iterable
import websockets.asyncio.server
@@ -33,9 +33,9 @@ from bumble.transport import open_transport
logger = logging.getLogger(__name__)
ws: Optional[websockets.asyncio.server.ServerConnection] = None
ag_protocol: Optional[hfp.AgProtocol] = None
source_file: Optional[io.BufferedReader] = None
ws: websockets.asyncio.server.ServerConnection | None = None
ag_protocol: hfp.AgProtocol | None = None
source_file: io.BufferedReader | None = None
def _default_configuration() -> hfp.AgConfiguration: