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

@@ -16,7 +16,7 @@
# Imports
# -----------------------------------------------------------------------------
from typing import Any, Optional
from typing import Any
from unittest import mock
import pytest
@@ -294,7 +294,7 @@ def test_link_key_to_ltk(ct2: bool, expected: str, crypto_backend: Any):
)
@pytest.mark.asyncio
async def test_send_identity_address_command(
identity_address_type: Optional[pairing.PairingConfig.AddressType],
identity_address_type: pairing.PairingConfig.AddressType | None,
public_address: Address,
random_address: Address,
expected_identity_address: Address,