diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-14 11:47:36 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-14 11:47:36 +0100 |
commit | cb7a167c7dee2fa1a19bd09ede3bae8b140e79da (patch) | |
tree | 3bc9443f0d988273a78f4654030ab65b3c580509 /typings/serial/serialposix.pyi | |
parent | 7892ef9d248c189be68ce7faf63230ec0a318b67 (diff) |
build: use PlatformIO
Diffstat (limited to 'typings/serial/serialposix.pyi')
-rw-r--r-- | typings/serial/serialposix.pyi | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/typings/serial/serialposix.pyi b/typings/serial/serialposix.pyi deleted file mode 100644 index 9f41fd2..0000000 --- a/typings/serial/serialposix.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from typing import Any, Optional -from serial.serialutil import SerialBase - - -class PlatformSpecificBase: - ... - - -class PlatformSpecific(PlatformSpecificBase): - ... - - -class Serial(SerialBase, PlatformSpecific): - """\ - Serial port class POSIX implementation. Serial port configuration is - done with termios and fcntl. Runs on Linux and many other Un*x like - systems. - """ - - def close(self) -> None: - """Close port""" - ... - - def read(self, size: Optional[int] = ...) -> bytes: - """\ - Read size bytes from the serial port. If a timeout is set it may - return less characters as requested. With no timeout it will block - until the requested number of bytes is read. - """ - ... - - def __enter__(self) -> Serial: ... - - def __exit__(self, *args: Any, **kwargs: Any) -> None: ... |