Unverified Commit f308e3ec authored by Marcin Mielniczuk's avatar Marcin Mielniczuk
Browse files

Fix mypy

parent 868a9f21
Pipeline #8574 passed with stages
in 3 minutes and 14 seconds
......@@ -54,6 +54,8 @@ from gajim.common.types import ConnectionT # pylint: disable=unused-import
from gajim.common.types import LegacyContactsAPIT # pylint: disable=unused-import
from gajim.common.types import SettingsT # pylint: disable=unused-import
from gajim.gui.css_config import CSSConfig
interface = cast(InterfaceT, None)
thread_interface = lambda *args: None # Interface to run a thread and then a callback
config = c_config.Config()
......@@ -76,7 +78,7 @@ class Storage:
storage = Storage()
css_config = None
css_config: CSSConfig
transport_type = {} # type: Dict[str, str]
......@@ -630,7 +632,6 @@ def prefers_app_menu():
def load_css_config():
global css_config
from gajim.gui.css_config import CSSConfig
css_config = CSSConfig()
def set_debug_mode(enable: bool) -> None:
......
......@@ -70,7 +70,7 @@ def is_standalone() -> bool:
def init_gtk() -> None:
gajim.gui.init('gtk')
from gajim.gui import exception
from gajim.gtk import exception
exception.init()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment