summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/bt/bluez.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/bt/bluez.py')
-rw-r--r--kvmd/plugins/hid/bt/bluez.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/kvmd/plugins/hid/bt/bluez.py b/kvmd/plugins/hid/bt/bluez.py
index 1b28c3d1..a2c0499e 100644
--- a/kvmd/plugins/hid/bt/bluez.py
+++ b/kvmd/plugins/hid/bt/bluez.py
@@ -22,8 +22,6 @@
import types
-from typing import Type
-from typing import Optional
from typing import Any
import dbus
@@ -56,7 +54,7 @@ class BluezIface:
self.__pairing_required = pairing_required
self.__auth_required = auth_required
- self.__bus: Optional[dbus.SystemBus] = None
+ self.__bus: (dbus.SystemBus | None) = None
def get_address(self) -> str:
return self.__get_prop("Address")
@@ -100,7 +98,7 @@ class BluezIface:
def __exit__(
self,
- _exc_type: Type[BaseException],
+ _exc_type: type[BaseException],
_exc: BaseException,
_tb: types.TracebackType,
) -> None: