Use PEP 695 for simple type aliases (#117633)

This commit is contained in:
Marc Mueller
2024-05-17 14:42:21 +02:00
committed by GitHub
parent 4edee94a81
commit 87bb7ced79
78 changed files with 139 additions and 140 deletions

View File

@ -57,9 +57,9 @@ BLE_AVAILABILITY_CHECK_INTERVAL = 1800 # seconds
_LOGGER = logging.getLogger(__name__)
AddAccessoryCb = Callable[[Accessory], bool]
AddServiceCb = Callable[[Service], bool]
AddCharacteristicCb = Callable[[Characteristic], bool]
type AddAccessoryCb = Callable[[Accessory], bool]
type AddServiceCb = Callable[[Service], bool]
type AddCharacteristicCb = Callable[[Characteristic], bool]
def valid_serial_number(serial: str) -> bool: