stubs/serial/serialutil.pyi
raw| 1 | from typing import Optional, Union |
| 2 | |
| 3 | class SerialBase: |
| 4 | def __init__( |
| 5 | self, port: Optional[str], baudrate: int, rtscts: Union[bool, int], timeout: Optional[float] |
| 6 | ) -> None: ... |
| 7 | def close(self) -> None: ... |
| 8 | def read(self, length: int = 1) -> bytes: ... |
| 9 | def write(self, data: Union[bytes, bytearray, memoryview, list[int]]) -> int: ... |
| 10 | |
| 11 | class SerialException(IOError): ... |