From c11ff89894727270d4a9eb554d3a006f5b0d8d9d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 10 Aug 2021 10:12:30 -0700 Subject: [PATCH] flake8/black fix --- sqlite_utils/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index eaa9d65..2fff52c 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -264,7 +264,7 @@ class Database: return "".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)