Skip to content

Commit

Permalink
sqlite3: allow passing None for the func parameter of create_function (
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbrown authored Sep 12, 2022
1 parent c4483a7 commit 266aa3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ class Connection:
def create_collation(self, __name: str, __callback: Callable[[str, str], int | SupportsIndex] | None) -> None: ...
if sys.version_info >= (3, 8):
def create_function(
self, name: str, narg: int, func: Callable[..., _SqliteData], *, deterministic: bool = ...
self, name: str, narg: int, func: Callable[..., _SqliteData] | None, *, deterministic: bool = ...
) -> None: ...
else:
def create_function(self, name: str, num_params: int, func: Callable[..., _SqliteData]) -> None: ...
def create_function(self, name: str, num_params: int, func: Callable[..., _SqliteData] | None) -> None: ...

@overload
def cursor(self, cursorClass: None = ...) -> Cursor: ...
Expand Down

0 comments on commit 266aa3b

Please sign in to comment.