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

@@ -21,7 +21,6 @@ import asyncio
import json
import logging
import sys
from typing import Optional
import websockets.asyncio.server
@@ -218,7 +217,7 @@ def on_avrcp_start(avrcp_protocol: avrcp.Protocol, websocket_server: WebSocketSe
# -----------------------------------------------------------------------------
class WebSocketServer:
socket: Optional[websockets.asyncio.server.ServerConnection]
socket: websockets.asyncio.server.ServerConnection | None
def __init__(
self, avrcp_protocol: avrcp.Protocol, avrcp_delegate: Delegate