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 GitHub
commit cf1b407207
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()