From ecdf1526fb904752ac2284ed463c4a020436b70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 14 Apr 2019 10:44:08 +0200 Subject: [PATCH] Fix mypy error --- gajim/common/helpers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py index 2d1c4a165..7b1561f99 100644 --- a/gajim/common/helpers.py +++ b/gajim/common/helpers.py @@ -25,6 +25,9 @@ # You should have received a copy of the GNU General Public License # along with Gajim. If not, see . +from typing import Any # pylint: disable=unused-import +from typing import Dict # pylint: disable=unused-import + import sys import re import os @@ -1523,8 +1526,9 @@ def save_roster_position(window): class Singleton(type): - _instances = {} + _instances = {} # type: Dict[Any, Any] def __call__(cls, *args, **kwargs): if cls not in cls._instances: - cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) + cls._instances[cls] = super(Singleton, cls).__call__( + *args, **kwargs) return cls._instances[cls]