From 135405c8681b07410466bb4a09d7e8ee35655eec Mon Sep 17 00:00:00 2001 From: Felix Kaechele Date: Thu, 28 Dec 2023 19:57:14 +0100 Subject: [PATCH] chore: format files using new settings Signed-off-by: Felix Kaechele --- src/bonaparte/device.py | 4 ++-- src/bonaparte/fireplace.py | 5 ++--- tests/test_misc.py | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/bonaparte/device.py b/src/bonaparte/device.py index 780b407..fd6dd29 100644 --- a/src/bonaparte/device.py +++ b/src/bonaparte/device.py @@ -8,12 +8,12 @@ from bleak.exc import BleakDBusError, BleakError from bleak_retry_connector import ( + BLEAK_RETRY_EXCEPTIONS as BLEAK_EXCEPTIONS, BleakClientWithServiceCache, BleakNotFoundError, establish_connection, retry_bluetooth_connection_error, ) -from bleak_retry_connector import BLEAK_RETRY_EXCEPTIONS as BLEAK_EXCEPTIONS from .const import ( FOOTER, @@ -51,7 +51,7 @@ def raise_if_not_connected( - func: Callable[Concatenate[EfireDevice, P], Awaitable[T]] + func: Callable[Concatenate[EfireDevice, P], Awaitable[T]], ) -> Callable[Concatenate[EfireDevice, P], Awaitable[T]]: """Define a wrapper to authenticate if we aren't yet.""" diff --git a/src/bonaparte/fireplace.py b/src/bonaparte/fireplace.py index 8b98113..e414cf5 100644 --- a/src/bonaparte/fireplace.py +++ b/src/bonaparte/fireplace.py @@ -1,8 +1,7 @@ """Representation of a Fireplace.""" from __future__ import annotations -from dataclasses import dataclass -from dataclasses import fields as dc_fields +from dataclasses import dataclass, fields as dc_fields import logging from typing import TYPE_CHECKING, Concatenate, ParamSpec, TypeVar @@ -43,7 +42,7 @@ def needs_auth( - func: Callable[Concatenate[Fireplace, P], Awaitable[T]] + func: Callable[Concatenate[Fireplace, P], Awaitable[T]], ) -> Callable[Concatenate[Fireplace, P], Awaitable[T]]: """Define a wrapper to authenticate if we aren't yet authenticated.""" diff --git a/tests/test_misc.py b/tests/test_misc.py index f8760b7..dd2c440 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,8 +1,7 @@ """Miscellaneous tests.""" from bleak.backends.device import BLEDevice -import pytest - from bonaparte import Fireplace, FireplaceFeatures +import pytest fp = Fireplace(BLEDevice("aa:bb:cc:dd:ee:ff", "Fireplace", details=None, rssi=0))