Remove remaining bare Incompletes (#11768)

Enable Y065
This commit is contained in:
Sebastian Rittau
2024-04-16 15:26:14 +02:00
committed by GitHub
parent 7c8e82fe48
commit 7d56cd9a6c
33 changed files with 110 additions and 100 deletions

View File

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

View File

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