forked from ruundii/bthidhub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional fixes for bullseye and mypyc compatibility (ruundii#62)
- Loading branch information
1 parent
fd02791
commit 1bfafd1
Showing
12 changed files
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from typing import Callable, Tuple, Type, TypeVar | ||
from typing import Callable, TypeVar | ||
|
||
_T = TypeVar("_T", bound=Type[object]) | ||
_T = TypeVar("_T", bound=type[object]) | ||
|
||
def dbus_interface(interface_name: str, namespace: Tuple[str, ...] = ...) -> Callable[[_T], _T]: ... | ||
def dbus_interface(interface_name: str, namespace: tuple[str, ...] = ...) -> Callable[[_T], _T]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
from typing import Iterable, Tuple | ||
from typing import Iterable, Optional, Union | ||
|
||
class UHIDDevice: | ||
info: Tuple[int, int, int] | ||
name: str | ||
phys: str | ||
rdesc: bytes | ||
@property | ||
def name(self) -> Optional[str]: ... | ||
@name.setter | ||
def name(self, name: str) -> None: ... | ||
|
||
def call_input_event(self, data: Iterable[int]) -> None: ... | ||
@property | ||
def info(self) -> Optional[tuple[int, int, int]]: ... | ||
@info.setter | ||
def info(self, info: tuple[int, int, int]) -> None: ... | ||
|
||
@property | ||
def phys(self) -> Optional[str]: ... | ||
@phys.setter | ||
def phys(self, phys: str) -> None: ... | ||
|
||
@property | ||
def rdesc(self) -> Optional[list[int]]: ... | ||
@rdesc.setter | ||
def rdesc(self, rdesc: Union[str, bytes]) -> None: ... | ||
|
||
def call_input_event(self, _data: Union[list[int], bytes]) -> None: ... | ||
def create_kernel_device(self) -> None: ... | ||
def destroy(self) -> None: ... |