mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 19:04:32 +02:00
flake8/black fix
This commit is contained in:
parent
cf92a29c2e
commit
c11ff89894
1 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ class Database:
|
|||
return "<Database {}>".format(self.conn)
|
||||
|
||||
def register_function(
|
||||
self, fn: Callable=None, deterministic: bool = False, replace: bool = False
|
||||
self, fn: Callable = None, deterministic: bool = False, replace: bool = False
|
||||
):
|
||||
"""
|
||||
``fn`` will be made available as a function within SQL, with the same name and number
|
||||
|
|
@ -318,7 +318,7 @@ class Database:
|
|||
).strip()
|
||||
self.execute(attach_sql)
|
||||
|
||||
def execute(self, sql, parameters=None):
|
||||
def execute(self, sql: str, parameters: Optional[Union[Iterable, dict]] = None):
|
||||
"Execute SQL query and return a ``sqlite3.Cursor``"
|
||||
if self._tracer:
|
||||
self._tracer(sql, parameters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue