From 2ea8abc1c7d82d6412baa75de84a3c590295938c Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Tue, 8 Jan 2019 15:31:11 +0000 Subject: [PATCH] Update sqlite3 types to include extensions (#2728) --- stdlib/2and3/sqlite3/dbapi2.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/2and3/sqlite3/dbapi2.pyi b/stdlib/2and3/sqlite3/dbapi2.pyi index 55402968c..71bd15568 100644 --- a/stdlib/2and3/sqlite3/dbapi2.pyi +++ b/stdlib/2and3/sqlite3/dbapi2.pyi @@ -144,6 +144,10 @@ class Connection(object): # set_progress_handler(handler, n) -> see https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_progress_handler def set_progress_handler(self, *args, **kwargs) -> None: ... def set_trace_callback(self, *args, **kwargs): ... + # enable_load_extension and load_extension is not available on python distributions compiled + # without sqlite3 loadable extension support. see footnotes https://docs.python.org/3/library/sqlite3.html#f1 + def enable_load_extension(self, enabled: bool) -> None: ... + def load_extension(self, path: str) -> None: ... if sys.version_info >= (3, 7): def backup(self, target: Connection, *, pages: int = ..., progress: Optional[Callable[[int, int, int], object]] = ..., name: str = ...,