Philipp Hörist pushed to branch gtk4 at gajim / gajim


Commits:
bea34058 by Philipp Hörist at 2024-11-01T20:57:21+01:00
cq: Fix types

- - - - -


4 changed files:

- gajim/gtk/completion/commands.py
- gajim/gtk/completion/emoji.py
- gajim/gtk/completion/nickname.py
- gajim/gtk/util.py


Changes:

=====================================
gajim/gtk/completion/commands.py
=====================================
@@ -32,9 +32,6 @@ class CommandsCompletionListItem(BaseCompletionListItem, 
GObject.Object):
     command = GObject.Property(type=str)
     usage = GObject.Property(type=str)
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        GObject.Object.__init__(self, *args, **kwargs)
-
     def get_text(self) -> str:
         return f'/{self.props.command} '
 


=====================================
gajim/gtk/completion/emoji.py
=====================================
@@ -175,9 +175,6 @@ class EmojiCompletionListItem(BaseCompletionListItem, 
GObject.Object):
     var4 = GObject.Property(type=str, default='')
     var5 = GObject.Property(type=str, default='')
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        GObject.Object.__init__(self, *args, **kwargs)
-
     def get_text(self) -> str:
         return self.props.emoji
 


=====================================
gajim/gtk/completion/nickname.py
=====================================
@@ -38,9 +38,6 @@ class NicknameCompletionListItem(BaseCompletionListItem, 
GObject.Object):
     nickname = GObject.Property(type=str)
     avatar = GObject.Property(type=Gdk.Texture)
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        GObject.Object.__init__(self, *args, **kwargs)
-
     def get_text(self) -> str:
         return 
f'{self.props.nickname}{app.settings.get("gc_refer_to_nick_char")}'
 


=====================================
gajim/gtk/util.py
=====================================
@@ -12,7 +12,6 @@
 import datetime
 import logging
 import math
-import sys
 import textwrap
 from collections.abc import Iterator
 from functools import lru_cache
@@ -35,7 +34,6 @@
 from nbxmpp.structs import TuneData
 
 from gajim.common import app
-from gajim.common import configpaths
 from gajim.common import types
 from gajim.common.const import AvatarSize
 from gajim.common.const import LOCATION_DATA



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/bea340582f222367639b505e8f34790bb51297d4

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/bea340582f222367639b505e8f34790bb51297d4
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to