From 4587ceaef24b11d9475f090dcab68dd7b6cdb197 Mon Sep 17 00:00:00 2001 From: wurstsalat <mailtrash@posteo.de> Date: Sun, 31 Jul 2022 21:27:51 +0200 Subject: [PATCH] chore: Settings: Use correct type for set_contact_settings --- gajim/common/modules/contacts.py | 2 -- gajim/common/settings.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gajim/common/modules/contacts.py b/gajim/common/modules/contacts.py index 394bed2141..f48bb73d70 100644 --- a/gajim/common/modules/contacts.py +++ b/gajim/common/modules/contacts.py @@ -20,8 +20,6 @@ from typing import Union from typing import overload -from functools import partial - import cairo from nbxmpp.const import Affiliation from nbxmpp.const import Chatstate diff --git a/gajim/common/settings.py b/gajim/common/settings.py index c8ef00479f..8488000363 100644 --- a/gajim/common/settings.py +++ b/gajim/common/settings.py @@ -1029,7 +1029,7 @@ def set_contact_setting(self, def set_contact_settings(self, setting: str, - value: AllContactSettings) -> None: + value: SETTING_TYPE) -> None: for account, acc_settings in self._account_settings.items(): for jid in acc_settings['contact']: -- GitLab