You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The func parameter type for sqlite3's create_function() is defined as callback | None (see docs) but the typeshed stub does not include None as a valid type. This is a long-undocumented feature that was only recently added to the docs (see related issue python/cpython#95235 and commit python/cpython@5012bed).
In stdlib/sqlite3/dbapi2.pyi, the annotation for this parameter currently reads func: Callable[..., _SqliteData] (link) but it should be changed to func: Callable[..., _SqliteData] | None:
The func parameter type for sqlite3's
create_function()
is defined ascallback | None
(see docs) but the typeshed stub does not includeNone
as a valid type. This is a long-undocumented feature that was only recently added to the docs (see related issue python/cpython#95235 and commit python/cpython@5012bed).In stdlib/sqlite3/dbapi2.pyi, the annotation for this parameter currently reads
func: Callable[..., _SqliteData]
(link) but it should be changed tofunc: Callable[..., _SqliteData] | None
:The text was updated successfully, but these errors were encountered: