Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[sqlite3] Deprecate enable_shared_cache from dbapi2
I didn't look for source PR, but checked for `DeprecationWarning` at runtime.
  • Loading branch information
donbarbos committed Jul 31, 2025
commit a99f194fa3b85056694fa2047cf7bcceab277f58
3 changes: 2 additions & 1 deletion stdlib/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ from sqlite3 import (
Row as Row,
Warning as Warning,
)
from typing_extensions import deprecated

if sys.version_info >= (3, 12):
from _sqlite3 import (
Expand Down Expand Up @@ -214,7 +215,7 @@ if sys.version_info < (3, 14):

if sys.version_info < (3, 12):
if sys.version_info >= (3, 10):
# deprecation wrapper that has a different name for the argument...
Comment thread
donbarbos marked this conversation as resolved.
@deprecated("Deprecated since 3.10; removed in Python 3.12.")
Comment thread
donbarbos marked this conversation as resolved.
Outdated
def enable_shared_cache(enable: int) -> None: ...
else:
from _sqlite3 import enable_shared_cache as enable_shared_cache
Expand Down