mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
sqlite3 updates for py312 (#10469)
This commit is contained in:
@@ -233,8 +233,9 @@ def connect(
|
||||
) -> Connection: ...
|
||||
def enable_callback_tracebacks(__enable: bool) -> None: ...
|
||||
|
||||
# takes a pos-or-keyword argument because there is a C wrapper
|
||||
def enable_shared_cache(enable: int) -> None: ...
|
||||
if sys.version_info < (3, 12):
|
||||
# takes a pos-or-keyword argument because there is a C wrapper
|
||||
def enable_shared_cache(enable: int) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def register_adapter(__type: type[_T], __adapter: _Adapter[_T]) -> None: ...
|
||||
@@ -298,6 +299,11 @@ class Connection:
|
||||
isolation_level: str | None # one of '', 'DEFERRED', 'IMMEDIATE' or 'EXCLUSIVE'
|
||||
@property
|
||||
def total_changes(self) -> int: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
@property
|
||||
def autocommit(self) -> int: ...
|
||||
@autocommit.setter
|
||||
def autocommit(self, val: int) -> None: ...
|
||||
row_factory: Any
|
||||
text_factory: Any
|
||||
def __init__(
|
||||
@@ -375,6 +381,9 @@ class Connection:
|
||||
def getlimit(self, __category: int) -> int: ...
|
||||
def serialize(self, *, name: str = "main") -> bytes: ...
|
||||
def deserialize(self, __data: ReadableBuffer, *, name: str = "main") -> None: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def getconfig(self, __op: int) -> bool: ...
|
||||
def setconfig(self, __op: int, __enable: bool = True) -> bool: ...
|
||||
|
||||
def __call__(self, __sql: str) -> _Statement: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
|
||||
@@ -74,14 +74,6 @@ posixpath.isjunction
|
||||
posixpath.splitroot
|
||||
smtplib.SMTP.starttls
|
||||
smtplib.SMTP_SSL.__init__
|
||||
sqlite3.Connection.autocommit
|
||||
sqlite3.Connection.getconfig
|
||||
sqlite3.Connection.setconfig
|
||||
sqlite3.dbapi2.Connection.autocommit
|
||||
sqlite3.dbapi2.Connection.getconfig
|
||||
sqlite3.dbapi2.Connection.setconfig
|
||||
sqlite3.dbapi2.enable_shared_cache
|
||||
sqlite3.enable_shared_cache
|
||||
sre_parse.Tokenizer.checkgroupname
|
||||
sre_parse.expand_template
|
||||
sre_parse.parse_template
|
||||
|
||||
Reference in New Issue
Block a user