mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
pymysql: query arguments can be any value (#5653)
This commit is contained in:
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user