mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Make sure that the context manager for sqlite3.Connection works
This was originally reported in https://github.com/davidhalter/jedi/issues/1084.
This commit is contained in:
@@ -154,7 +154,7 @@ class Connection(object):
|
||||
progress: Optional[Callable[[int, int, int], object]] = ..., name: str = ...,
|
||||
sleep: float = ...) -> None: ...
|
||||
def __call__(self, *args, **kwargs): ...
|
||||
def __enter__(self, *args, **kwargs): ...
|
||||
def __enter__(self, *args, **kwargs) -> Connection: ...
|
||||
def __exit__(self, *args, **kwargs): ...
|
||||
|
||||
class Cursor(Iterator[Any]):
|
||||
|
||||
Reference in New Issue
Block a user