From 3c46c6cbb966051530f1004ac27c7c2a1ea539f6 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 16 Sep 2019 12:39:53 -0400 Subject: [PATCH] fix mypy type issue --- 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 473b0cf82..5fd9c9b47 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 +from typing import Tuple, List, Union, Callable, Any, Awaitable, Iterable, Optional import sqlite3 @@ -216,7 +216,7 @@ def rows_to_dict(rows, fields): class SQLiteMixin: - SCHEMA_VERSION: str = None + SCHEMA_VERSION: Optional[str] = None CREATE_TABLES_QUERY: str MAX_QUERY_VARIABLES = 900