Skip to content

Commit 01efba9

Browse files
authored
dbapi2 set_progress_handler should return integer (#8109)
dbapi2 set_progress_handler callback should return an int according to the stdlib documentation: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.set_progress_handler Fixes #8105
1 parent 34579f1 commit 01efba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/sqlite3/dbapi2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class Connection:
341341
def set_authorizer(
342342
self, authorizer_callback: Callable[[int, str | None, str | None, str | None, str | None], int] | None
343343
) -> None: ...
344-
def set_progress_handler(self, progress_handler: Callable[[], bool | None] | None, n: int) -> None: ...
344+
def set_progress_handler(self, progress_handler: Callable[[], int | None] | None, n: int) -> None: ...
345345
def set_trace_callback(self, trace_callback: Callable[[str], object] | None) -> None: ...
346346
# enable_load_extension and load_extension is not available on python distributions compiled
347347
# without sqlite3 loadable extension support. see footnotes https://docs.python.org/3/library/sqlite3.html#f1

0 commit comments

Comments
 (0)