Add a type hint for db.close()

Closes #662
This commit is contained in:
Alex Chan 2025-06-13 13:48:27 +01:00 committed by GitHub
commit ad44e9fb65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,7 +369,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()