Skip to content

Commit 5fc6756

Browse files
committed
Fix pyserial read_all return type
1 parent 098f30e commit 5fc6756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/pyserial/serial/serialutil.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ class SerialBase(io.RawIOBase):
147147
def apply_settings(self, d: dict[str, Any]) -> None: ...
148148
def readinto(self, buffer: WriteableBuffer, /) -> int: ... # returns int unlike `io.RawIOBase`
149149
def send_break(self, duration: float = 0.25) -> None: ...
150-
def read_all(self) -> bytes | None: ...
150+
def read_all(self) -> bytes: ...
151151
def read_until(self, expected: bytes = b"\n", size: int | None = None) -> bytes: ...
152152
def iread_until(self, expected: bytes = ..., size: int | None = ...) -> Generator[bytes]: ...

0 commit comments

Comments
 (0)