Third-party stubs: Improve several __exit__ methods (#7575)

This commit is contained in:
Alex Waygood
2022-04-01 16:03:12 +01:00
committed by GitHub
parent 4c9dc43c87
commit ec27c00ca2
12 changed files with 49 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ class Cursor:
def callproc(self, procname: Text, args: Iterable[Any] = ...) -> Any: ...
def scroll(self, value: int, mode: Text = ...) -> None: ...
def __enter__(self: Self) -> Self: ...
def __exit__(self, *exc_info: Any) -> None: ...
def __exit__(self, *exc_info: object) -> None: ...
# Methods returning result tuples are below.
def fetchone(self) -> tuple[Any, ...] | None: ...
def fetchmany(self, size: int | None = ...) -> tuple[tuple[Any, ...], ...]: ...