mirror of
https://github.com/google/bumble.git
synced 2026-05-06 03:38:01 +00:00
Ruff: Add and fix UP rules
This commit is contained in:
@@ -19,7 +19,7 @@ import asyncio
|
||||
# Imports
|
||||
# -----------------------------------------------------------------------------
|
||||
import logging
|
||||
from typing import TYPE_CHECKING, Optional
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from bumble import core, hci, ll, lmp
|
||||
|
||||
@@ -67,7 +67,7 @@ class LocalLink:
|
||||
|
||||
def find_classic_controller(
|
||||
self, address: hci.Address
|
||||
) -> Optional[controller.Controller]:
|
||||
) -> controller.Controller | None:
|
||||
for controller in self.controllers:
|
||||
if controller.public_address == address:
|
||||
return controller
|
||||
|
||||
Reference in New Issue
Block a user