Skip to content

Commit 09cbb45

Browse files
fix: pyserial: read_all cannot return none? (#15619)
Signed-off-by: Harsha Pasham <pashamharsha018@gmail.com>
1 parent 9d757d0 commit 09cbb45

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.claude/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"attribution": {
3+
"commit": "",
4+
"pr": ""
5+
}
6+
}

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)