[PyMySQL] Add stub for SSCursor.read_next (#14670)

This commit is contained in:
Spider84pr
2025-09-09 01:00:56 +03:00
committed by GitHub
parent cb0fbd8913
commit de81998004
+2 -1
View File
@@ -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]