From 02c51c605911bc86c5c43b64c50471d68bc5ee26 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 17 Sep 2019 10:26:49 -0400 Subject: [PATCH] typing --- torba/torba/client/basedatabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torba/torba/client/basedatabase.py b/torba/torba/client/basedatabase.py index 496781115..b92965fa1 100644 --- a/torba/torba/client/basedatabase.py +++ b/torba/torba/client/basedatabase.py @@ -3,7 +3,7 @@ import asyncio from binascii import hexlify from concurrent.futures.thread import ThreadPoolExecutor -from typing import Tuple, List, Union, Callable, Any, Awaitable, Iterable, Optional +from typing import Tuple, List, Union, Callable, Any, Awaitable, Iterable, Dict, Optional import sqlite3 @@ -159,7 +159,7 @@ def constraints_to_sql(constraints, joiner=' AND ', prepend_key=''): return joiner.join(sql) if sql else '', values -def query(select, **constraints): +def query(select, **constraints) -> Tuple[str, Dict[str, Any]]: sql = [select] limit = constraints.pop('limit', None) offset = constraints.pop('offset', None)