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 bd78966f1e

View file

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