diff options
author | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
commit | ee3e224e396494cd0d69bb6167087a071a20349c (patch) | |
tree | 5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/plugins/hid/otg/mouse.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
Diffstat (limited to 'kvmd/plugins/hid/otg/mouse.py')
-rw-r--r-- | kvmd/plugins/hid/otg/mouse.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/otg/mouse.py b/kvmd/plugins/hid/otg/mouse.py index 0c1a0946..91c2967e 100644 --- a/kvmd/plugins/hid/otg/mouse.py +++ b/kvmd/plugins/hid/otg/mouse.py @@ -21,7 +21,6 @@ from typing import Generator -from typing import Optional from typing import Any from ....logging import get_logger @@ -145,8 +144,8 @@ class MouseProcess(BaseDeviceProcess): def __make_report( self, - relative_event: Optional[MouseRelativeEvent]=None, - wheel_event: Optional[MouseWheelEvent]=None, + relative_event: (MouseRelativeEvent | None)=None, + wheel_event: (MouseWheelEvent | None)=None, ) -> bytes: if self.__absolute: |