From 09cbb4531bd57ad9655862ce7bf8bebe4edf085e Mon Sep 17 00:00:00 2001 From: Harsha Pasham Date: Mon, 6 Apr 2026 20:46:52 -0400 Subject: [PATCH 1/2] fix: pyserial: read_all cannot return none? (#15619) Signed-off-by: Harsha Pasham --- .claude/settings.json | 6 ++++++ stubs/pyserial/serial/serialutil.pyi | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 000000000000..0c03c6a34bc9 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,6 @@ +{ + "attribution": { + "commit": "", + "pr": "" + } +} \ No newline at end of file diff --git a/stubs/pyserial/serial/serialutil.pyi b/stubs/pyserial/serial/serialutil.pyi index 3b6f84adee50..dbd5f05c3f6b 100644 --- a/stubs/pyserial/serial/serialutil.pyi +++ b/stubs/pyserial/serial/serialutil.pyi @@ -147,6 +147,6 @@ class SerialBase(io.RawIOBase): def apply_settings(self, d: dict[str, Any]) -> None: ... def readinto(self, buffer: WriteableBuffer, /) -> int: ... # returns int unlike `io.RawIOBase` def send_break(self, duration: float = 0.25) -> None: ... - def read_all(self) -> bytes | None: ... + def read_all(self) -> bytes: ... def read_until(self, expected: bytes = b"\n", size: int | None = None) -> bytes: ... def iread_until(self, expected: bytes = ..., size: int | None = ...) -> Generator[bytes]: ... From 022d9389da0fb431b888854fb7f35ce5ab537c28 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 00:49:11 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- .claude/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index 0c03c6a34bc9..671a08447779 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -3,4 +3,4 @@ "commit": "", "pr": "" } -} \ No newline at end of file +}