From 09726876ada936b3d65311e9629d461ab24be9b2 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 13 Feb 2019 22:42:29 -0500 Subject: [PATCH] pylint --- torba/client/basedatabase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/torba/client/basedatabase.py b/torba/client/basedatabase.py index 3ed0fcae9..ac4c252b2 100644 --- a/torba/client/basedatabase.py +++ b/torba/client/basedatabase.py @@ -72,8 +72,9 @@ class AIOSQLite: self.executor.submit(self.__run_transaction_with_foreign_keys_disabled, fun, *args, **kwargs) ) - def __run_transaction_with_foreign_keys_disabled(self, fun: Callable[[sqlite3.Connection, Any, Any], Any], *args, - **kwargs): + def __run_transaction_with_foreign_keys_disabled(self, + fun: Callable[[sqlite3.Connection, Any, Any], Any], + *args, **kwargs): foreign_keys_enabled, = self.connection.execute("pragma foreign_keys").fetchone() if not foreign_keys_enabled: raise sqlite3.IntegrityError("foreign keys are disabled, use `AIOSQLite.run` instead")