From 88d4e2f520f95b267367085b946253f8779bc5c4 Mon Sep 17 00:00:00 2001 From: Pixeless_ Date: Thu, 5 Nov 2026 03:25:01 +0800 Subject: [PATCH] [PyMySQL] Fix the type of Cursor.description --- 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 4cb666119cf7..90090f836bad 100644 --- a/stubs/PyMySQL/pymysql/cursors.pyi +++ b/stubs/PyMySQL/pymysql/cursors.pyi @@ -1,4 +1,5 @@ import re +from _typeshed import MaybeNone from collections.abc import Iterable, Iterator from typing import Any, ClassVar, TypeAlias, overload from typing_extensions import Self, deprecated @@ -11,7 +12,7 @@ _Args: TypeAlias = list[Any] | tuple[Any, ...] | dict[str, Any] class Cursor: max_stmt_length: ClassVar[int] connection: Connection[Any] - description: tuple[str, ...] + description: tuple[tuple[str, int, None, int, int, int, bool], ...] | MaybeNone rownumber: int rowcount: int arraysize: int