From de819980041bf9f86ba120e1f070456ce8800d5a Mon Sep 17 00:00:00 2001 From: Spider84pr Date: Tue, 9 Sep 2025 01:00:56 +0300 Subject: [PATCH] [PyMySQL] Add stub for `SSCursor.read_next` (#14670) --- stubs/PyMySQL/pymysql/cursors.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/PyMySQL/pymysql/cursors.pyi b/stubs/PyMySQL/pymysql/cursors.pyi index 6111f43b7..4a9dfca63 100644 --- a/stubs/PyMySQL/pymysql/cursors.pyi +++ b/stubs/PyMySQL/pymysql/cursors.pyi @@ -45,7 +45,7 @@ class DictCursorMixin: class SSCursor(Cursor): def __del__(self) -> None: ... - def read_next(self): ... + def read_next(self) -> tuple[Any, ...] | None: ... def fetchall(self) -> list[tuple[Any, ...]]: ... # type: ignore[override] def fetchall_unbuffered(self) -> Iterator[tuple[Any, ...]]: ... def scroll(self, value: int, mode: str = "relative") -> None: ... @@ -54,3 +54,4 @@ class DictCursor(DictCursorMixin, Cursor): ... # type: ignore[misc] class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore[misc] def fetchall_unbuffered(self) -> Iterator[dict[str, Any]]: ... # type: ignore[override] + def read_next(self) -> dict[str, Any] | None: ... # type: ignore[override]