Skip to content

Commit d9814c0

Browse files
authored
[pyserial] Fix read_all return type to not include None (#15797)
1 parent 09ee44b commit d9814c0

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
@@ -164,6 +164,6 @@ class SerialBase(io.RawIOBase):
164164
def apply_settings(self, d: dict[str, Any]) -> None: ...
165165
def readinto(self, buffer: WriteableBuffer, /) -> int: ... # returns int unlike `io.RawIOBase`
166166
def send_break(self, duration: float = 0.25) -> None: ...
167-
def read_all(self) -> bytes | None: ...
167+
def read_all(self) -> bytes: ...
168168
def read_until(self, expected: bytes = b"\n", size: int | None = None) -> bytes: ...
169169
def iread_until(self, expected: bytes = ..., size: int | None = ...) -> Generator[bytes]: ...

0 commit comments

Comments
 (0)