From 515aa6fa3d6e78d34c4be811ae8522960d9d0d2c Mon Sep 17 00:00:00 2001 From: Akuli Date: Thu, 17 Jun 2021 12:02:37 +0300 Subject: [PATCH] pymysql: query arguments can be any value (#5653) --- stubs/PyMySQL/pymysql/cursors.pyi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stubs/PyMySQL/pymysql/cursors.pyi b/stubs/PyMySQL/pymysql/cursors.pyi index b49901950..6ae260d2f 100644 --- a/stubs/PyMySQL/pymysql/cursors.pyi +++ b/stubs/PyMySQL/pymysql/cursors.pyi @@ -3,7 +3,6 @@ from typing import Any, Dict, Iterable, Iterator, List, Optional, Text, Tuple, T from .connections import Connection _Gen = Union[Tuple[Any, ...], Dict[Text, Any]] -_QueryArgs = Union[Tuple[Any, ...], List[Any], Dict[Text, Any], None] _SelfT = TypeVar("_SelfT") class Cursor: @@ -21,9 +20,9 @@ class Cursor: def setinputsizes(self, *args) -> None: ... def setoutputsizes(self, *args) -> None: ... def nextset(self) -> Optional[bool]: ... - def mogrify(self, query: Text, args: _QueryArgs = ...) -> str: ... - def execute(self, query: Text, args: _QueryArgs = ...) -> int: ... - def executemany(self, query: Text, args: Iterable[_QueryArgs]) -> Optional[int]: ... + def mogrify(self, query: Text, args: object = ...) -> str: ... + def execute(self, query: Text, args: object = ...) -> int: ... + def executemany(self, query: Text, args: Iterable[object]) -> Optional[int]: ... def callproc(self, procname: Text, args: Iterable[Any] = ...) -> Any: ... def fetchone(self) -> Optional[_Gen]: ... def fetchmany(self, size: Optional[int] = ...) -> Union[Optional[_Gen], List[_Gen]]: ...