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]]: ...