Add a type hint for db.close() (#663)

Closes #662
This commit is contained in:
Alex Chan 2025-10-01 21:37:05 +01:00 • committed by Simon Willison
commit 3a14edce5d

View file

@ -368,7 +368,7 @@ class Database:
pm.hook.prepare_connection(conn=self.conn) pm.hook.prepare_connection(conn=self.conn)
self.strict = strict self.strict = strict
def close(self): def close(self) -> None:
"Close the SQLite connection, and the underlying database file" "Close the SQLite connection, and the underlying database file"
self.conn.close() self.conn.close()