From 74b5289e3326c890b8c80be1884fc630eaa41e7a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 13 Dec 2019 21:06:45 +0100 Subject: [PATCH] Make sure that the context manager for sqlite3.Connection works This was originally reported in https://github.com/davidhalter/jedi/issues/1084. --- stdlib/2and3/sqlite3/dbapi2.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/sqlite3/dbapi2.pyi b/stdlib/2and3/sqlite3/dbapi2.pyi index 1acaf2ff6..45c5c2106 100644 --- a/stdlib/2and3/sqlite3/dbapi2.pyi +++ b/stdlib/2and3/sqlite3/dbapi2.pyi @@ -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]):