From 772f7a48e6d3e79bf0ad70cfeaff59bfd5c8f06d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 14 Dec 2019 10:08:38 +0100 Subject: [PATCH] Make sure that the context manager for sqlite3.Connection works (#3542) --- 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]):