mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-14 05:14:22 +02:00
Fixes for Pyright, closes #833
This commit is contained in:
parent
38fe466700
commit
ebb04a97de
16 changed files with 109 additions and 85 deletions
|
|
@ -83,7 +83,8 @@ def test_autocommit_connections_are_rejected(tmpdir, autocommit):
|
|||
)
|
||||
def test_legacy_transaction_control_connection_is_accepted(tmpdir):
|
||||
conn = sqlite3.connect(
|
||||
str(tmpdir / "test.db"), autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL
|
||||
str(tmpdir / "test.db"),
|
||||
autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL, # type: ignore[arg-type]
|
||||
)
|
||||
db = Database(conn)
|
||||
db.table("t").insert({"id": 1}, pk="id")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue