new typing style

This commit is contained in:
Maxim Devaev
2022-09-04 18:08:40 +03:00
parent 4b75221e94
commit ee3e224e39
129 changed files with 593 additions and 941 deletions

View File

@@ -20,13 +20,11 @@
# ========================================================================== #
from typing import Optional
from . import Hid
# =====
def make_keyboard_hid(report_id: Optional[int]=None) -> Hid:
def make_keyboard_hid(report_id: (int | None)=None) -> Hid:
return Hid(
protocol=1, # Keyboard protocol
subclass=1, # Boot interface subclass