Skip to content

Commit 2b1d873

Browse files
authored
Merge pull request #251 from dbcli/codex/fix-typecheck-failure-in-dbcommands.py
fix: resolve typecheck failures in `.load` command and tests utils
2 parents 8b6ebc6 + 4af9518 commit 2b1d873

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

litecli/packages/special/dbcommands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def status(cur: DBCursor, **_: Any) -> list[tuple]:
246246
arg_type=PARSED_QUERY,
247247
case_sensitive=True,
248248
)
249-
def load_extension(cur: DBCursor, arg: str, **_: Any) -> None:
249+
def load_extension(cur: DBCursor, arg: str, **_: Any) -> list[tuple]:
250250
args = shlex.split(arg)
251251
if len(args) != 1:
252252
raise TypeError(".load accepts exactly one path")

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
def db_connection(dbname=":memory:"):
24-
conn = sqlite3.connect(database=dbname, isolation_level=None) # type: ignore[attr-defined]
24+
conn = sqlite3.connect(database=dbname, isolation_level=None)
2525
return conn
2626

2727

0 commit comments

Comments
 (0)