mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 10:38:28 +08:00
@@ -282,8 +282,8 @@ class Warning(Exception): ...
|
||||
class ISQLQuote:
|
||||
_wrapped: Any
|
||||
def __init__(self, wrapped: object, /, **kwargs) -> None: ...
|
||||
def getbinary(self) -> Incomplete: ...
|
||||
def getbuffer(self) -> Incomplete: ...
|
||||
def getbinary(self): ...
|
||||
def getbuffer(self): ...
|
||||
def getquoted(self) -> bytes: ...
|
||||
|
||||
class Decimal:
|
||||
@@ -582,7 +582,7 @@ def Timestamp(
|
||||
def TimestampFromPy(datetime: dt.datetime, /) -> _datetime: ...
|
||||
def TimestampFromTicks(ticks: float, /) -> _datetime: ...
|
||||
def _connect(*args, **kwargs): ...
|
||||
def adapt(obj: object, protocol: Incomplete = ..., alternate: Incomplete = ..., /) -> Any: ...
|
||||
def adapt(obj: object, protocol=..., alternate=..., /) -> Any: ...
|
||||
def encrypt_password(
|
||||
password: str | bytes, user: str | bytes, scope: connection | cursor | None = None, algorithm: str | None = None
|
||||
) -> str: ...
|
||||
|
||||
@@ -12,8 +12,8 @@ class AbstractConnectionPool:
|
||||
def __init__(self, minconn: ConvertibleToInt, maxconn: ConvertibleToInt, *args, **kwargs) -> None: ...
|
||||
# getconn, putconn and closeall are officially documented as methods of the
|
||||
# abstract base class, but in reality, they only exist on the children classes
|
||||
def getconn(self, key: Hashable | None = None) -> Incomplete: ...
|
||||
def putconn(self, conn: Incomplete, key: Hashable | None = None, close: bool = False) -> None: ...
|
||||
def getconn(self, key: Hashable | None = None): ...
|
||||
def putconn(self, conn, key: Hashable | None = None, close: bool = False) -> None: ...
|
||||
def closeall(self) -> None: ...
|
||||
|
||||
class SimpleConnectionPool(AbstractConnectionPool): ...
|
||||
|
||||
Reference in New Issue
Block a user