Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood
2023-01-18 08:48:16 +00:00
committed by GitHub
parent ddfaca3200
commit 4fea314594
460 changed files with 3779 additions and 2909 deletions

View File

@@ -1,3 +1,4 @@
from _typeshed import Incomplete
from typing import Any
RE_INSERT_VALUES: Any
@@ -32,7 +33,7 @@ class BaseCursor:
def nextset(self): ...
def setinputsizes(self, *args) -> None: ...
def setoutputsizes(self, *args) -> None: ...
def execute(self, query, args: Any | None = ...): ...
def execute(self, query, args: Incomplete | None = ...): ...
def executemany(self, query: str, args: list[Any]) -> int: ...
def callproc(self, procname, args=...): ...
def __iter__(self): ...
@@ -40,7 +41,7 @@ class BaseCursor:
class CursorStoreResultMixIn:
rownumber: Any
def fetchone(self): ...
def fetchmany(self, size: Any | None = ...): ...
def fetchmany(self, size: Incomplete | None = ...): ...
def fetchall(self): ...
def scroll(self, value, mode: str = ...) -> None: ...
def __iter__(self): ...
@@ -48,7 +49,7 @@ class CursorStoreResultMixIn:
class CursorUseResultMixIn:
rownumber: Any
def fetchone(self): ...
def fetchmany(self, size: Any | None = ...): ...
def fetchmany(self, size: Incomplete | None = ...): ...
def fetchall(self): ...
def __iter__(self): ...
def next(self): ...