Skip to content

Commit 5743863

Browse files
committed
Merge branch 'cysqlite' of https://github.com/Vizonex/typeshed into cysqlite
2 parents 6db2a7e + 2174567 commit 5743863

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

stubs/cysqlite/cysqlite/__init__.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ from ._cysqlite import (
1818
)
1919
from .exceptions import *
2020

21-
version: str
22-
__version__: str
23-
version_info: tuple[int, int, int]
24-
apilevel: str
25-
paramstyle: str
21+
version: Final[str]
22+
__version__: Final[str]
23+
version_info: Final[tuple[int, int, int]]
24+
apilevel: Final = "2.0"
25+
paramstyle: Final = "qmark"

stubs/cysqlite/cysqlite/_cysqlite.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def set_singlethread() -> bool: ...
4242
def set_stmt_journal_spill(nbytes: int) -> bool: ...
4343

4444
sqlite_version: str
45-
sqlite_version_info: tuple[Any, ...]
45+
sqlite_version_info: tuple[Any, ...] # tuple entries can be either int or str
4646

4747
def status(flag: int) -> tuple[int, int]: ...
4848

@@ -199,7 +199,7 @@ class Connection(_callable_context_manager):
199199
check_table_sizes: bool = False,
200200
dry_run: bool = False,
201201
) -> Cursor: ...
202-
def pragma(self, key: str, value: Any = ..., database: str | None = None, multi: bool = False) -> None: ...
202+
def pragma(self, key: str, value: Any = sentinel, database: str | None = None, multi: bool = False) -> None: ...
203203
def progress(self, fn: Callable[[int, int, bool], None], n: int = 1) -> None: ...
204204
def register_adapter(self, python_type: type[Any], fn: Callable[..., Any]) -> None: ...
205205
def register_converter(self, data_type: str, fn: Callable[..., Any]) -> None: ...
@@ -211,7 +211,7 @@ class Connection(_callable_context_manager):
211211
adapter: Callable[..., Any] | None = None,
212212
) -> None: ...
213213
def rollback(self) -> None: ...
214-
def rollback_hook(self, fn: Callable[[], Any] | None) -> None: ...
214+
def rollback_hook(self, fn: Callable[[], object] | None) -> None: ...
215215
def savepoint(self, sid: str | None = None) -> Savepoint: ...
216216
def set_autocheckpoint(self, n: int) -> None: ...
217217
def set_busy_handler(self, timeout: float = 5.0) -> None: ...

0 commit comments

Comments
 (0)