From a34bf54c46944dbe583a8e0de80ee1ac99c0c80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 11 Sep 2018 19:29:08 +0200 Subject: [PATCH] Fix mypy error regarding _() --- gajim/common/modules/adhoc_commands.py | 7 +++++-- gajim/common/modules/misc.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gajim/common/modules/adhoc_commands.py b/gajim/common/modules/adhoc_commands.py index 7afd97371..0c75a9008 100644 --- a/gajim/common/modules/adhoc_commands.py +++ b/gajim/common/modules/adhoc_commands.py @@ -20,11 +20,14 @@ # along with Gajim. If not, see . import logging + import nbxmpp -from gajim.common import helpers -from gajim.common.modules import dataforms from gajim.common import app +from gajim.common import helpers +from gajim.common.i18n import _ +from gajim.common.modules import dataforms + from gajim.common.nec import NetworkIncomingEvent log = logging.getLogger('gajim.c.m.commands') diff --git a/gajim/common/modules/misc.py b/gajim/common/modules/misc.py index 5291a4986..6759a03eb 100644 --- a/gajim/common/modules/misc.py +++ b/gajim/common/modules/misc.py @@ -19,6 +19,7 @@ import logging import nbxmpp from gajim.common import app +from gajim.common.i18n import _ from gajim.common.modules.date_and_time import parse_datetime log = logging.getLogger('gajim.c.m.misc')