mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Third-party stubs: Improve several __exit__ methods (#7575)
This commit is contained in:
@@ -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, ...], ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user