pymysql: query arguments can be any value (#5653)

This commit is contained in:
Akuli
2021-06-17 12:02:37 +03:00
committed by GitHub
parent 74091411ea
commit 515aa6fa3d

View File

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