Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
a1cf0992 by wurstsalat at 2022-03-04T23:49:59+01:00
ChatList: Typing

- - - - -
f587c239 by wurstsalat at 2022-03-04T23:51:01+01:00
Update pyrightconfig

- - - - -


3 changed files:

- gajim/common/types.py
- gajim/gtk/chat_list.py
- pyrightconfig.json


Changes:

=====================================
gajim/common/types.py
=====================================
@@ -77,4 +77,5 @@
 ObservableCbDict = dict[str, list[weakref.WeakMethod[AnyCallableT]]]
 
 ChatContactT = Union['BareContact', 'GroupchatContact', 'GroupchatParticipant']
+OneOnOneContactT = Union['BareContact', 'GroupchatParticipant']
 GroupchatContactT = Union['GroupchatContact']


=====================================
gajim/gtk/chat_list.py
=====================================
@@ -47,6 +47,7 @@
 from gajim.common.preview_helpers import filename_from_uri
 from gajim.common.preview_helpers import guess_simple_file_type
 from gajim.common.types import ChatContactT
+from gajim.common.types import OneOnOneContactT
 
 from .menus import get_chat_list_row_menu
 from .builder import get_builder
@@ -772,7 +773,7 @@ def update_account_identifier(self) -> None:
         self._ui.account_identifier.set_visible(show)
 
     def _on_chatstate_update(self,
-                             contact: ChatContactT,
+                             contact: OneOnOneContactT,
                              _signal_name: str
                              ) -> None:
         if contact.chatstate is None:


=====================================
pyrightconfig.json
=====================================
@@ -37,6 +37,7 @@
         "gajim/gtk/change_password.py",
         "gajim/gtk/chat_filter.py",
         "gajim/gtk/chat_list_stack.py",
+        "gajim/gtk/chat_list.py",
         "gajim/gtk/chat_page.py",
         "gajim/gtk/chat_stack.py",
         "gajim/gtk/const.py",



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/392d4a982fe65861416cf018f166cb454fab2677...f587c239099d6650b03ea87f15eb28ef01e85207

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/392d4a982fe65861416cf018f166cb454fab2677...f587c239099d6650b03ea87f15eb28ef01e85207
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to