diff --git a/gajim/common/modules/contacts.py b/gajim/common/modules/contacts.py
index 394bed214174272556c36748a887a14e8c6bc585..f48bb73d707916f09455aa349cc16a9ccee77abb 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 c8ef00479ff482ad74dc28c0a29ef3fb9f34eb57..8488000363f5e8e1fc6d3d572e78b7281953b3b9 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']: