diff --git a/litecli/packages/special/dbcommands.py b/litecli/packages/special/dbcommands.py index 1ffec7c..5391e8a 100644 --- a/litecli/packages/special/dbcommands.py +++ b/litecli/packages/special/dbcommands.py @@ -246,7 +246,7 @@ def status(cur: DBCursor, **_: Any) -> list[tuple]: arg_type=PARSED_QUERY, case_sensitive=True, ) -def load_extension(cur: DBCursor, arg: str, **_: Any) -> None: +def load_extension(cur: DBCursor, arg: str, **_: Any) -> list[tuple]: args = shlex.split(arg) if len(args) != 1: raise TypeError(".load accepts exactly one path") diff --git a/tests/utils.py b/tests/utils.py index 4bb7b48..07a3a03 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -21,7 +21,7 @@ def db_connection(dbname=":memory:"): - conn = sqlite3.connect(database=dbname, isolation_level=None) # type: ignore[attr-defined] + conn = sqlite3.connect(database=dbname, isolation_level=None) return conn