Debian Codegraph @

stubs/hid.pyi

raw
1 from typing import TypedDict
2
3 class device:
4 def open_path(self, path: bytes) -> None: ...
5 def close(self) -> None: ...
6 def read(self, max_length: int, timeout_ms: int) -> list[int]: ...
7 def write(self, data: bytes) -> int: ...
8
9 class _DeviceDict(TypedDict):
10 path: bytes
11 vendor_id: int
12 product_id: int
13 manufacturer_string: str
14 product_string: str
15 interface_number: int
16
17 def enumerate(vendor_id: int = 0, product_id: int = 0) -> list[_DeviceDict]: ...