Skip to content

Commit 4af9518

Browse files
committed
fix: keep .load return while correcting annotation
1 parent a77667a commit 4af9518

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

litecli/packages/special/dbcommands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,15 @@ 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")
253253
path = args[0]
254254
conn = cur.connection
255255
conn.enable_load_extension(True)
256256
conn.load_extension(path)
257+
return [(None, None, None, "")]
257258

258259

259260
@special_command(

0 commit comments

Comments
 (0)