diff options
author | Filipe Laíns <lains@riseup.net> | 2021-02-25 16:11:45 +0000 |
---|---|---|
committer | Filipe Laíns <lains@riseup.net> | 2021-02-25 16:15:55 +0000 |
commit | cb003cc4793edb14f1d93dfa2e8f3b0ffecd72b1 (patch) | |
tree | 482e540e43d4a8993d98a7f24efb36a198af7cc8 /ioctl/__init__.py | |
parent | b2e952baeee2fcf7881019fda049c75015c77c67 (diff) |
hidraw: open unbuffered
Signed-off-by: Filipe Laíns <lains@riseup.net>
Diffstat (limited to 'ioctl/__init__.py')
-rw-r--r-- | ioctl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ioctl/__init__.py b/ioctl/__init__.py index a7b9ffb..2b38d6f 100644 --- a/ioctl/__init__.py +++ b/ioctl/__init__.py @@ -3,7 +3,7 @@ import array import fcntl -from typing import BinaryIO, Optional, Union +from typing import Optional, Union __all__ = ['IOCTL'] @@ -50,7 +50,7 @@ class IOCTL(object): (size << self.SIZESHIFT) ) - def perform(self, fd: BinaryIO, buf: Optional[Union[str, bytes, 'array.array[int]']] = None) -> bytearray: + def perform(self, fd: int, buf: Optional[Union[str, bytes, 'array.array[int]']] = None) -> bytearray: ''' Performs the ioctl ''' |