diff options
Diffstat (limited to 'typings/serial/serialwin32.pyi')
-rw-r--r-- | typings/serial/serialwin32.pyi | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/typings/serial/serialwin32.pyi b/typings/serial/serialwin32.pyi deleted file mode 100644 index 5124dd2..0000000 --- a/typings/serial/serialwin32.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -This type stub file was generated by pyright. -""" - -from typing import Any, Optional -from serial.serialutil import SerialBase - - -class Serial(SerialBase): - """Serial port implementation for Win32 based on ctypes.""" - - def __init__( - self, - port: Optional[str] = ..., - baudrate: Optional[int] = ..., - **kwargs: Any - ) -> None: - ... - - 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: ... |