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

Commits:

5 changed files:

Changes:

  • gajim/common/idle.py
    ... ... @@ -233,7 +233,7 @@ class LastInputInfo(ctypes.Structure):
    233 233
                     ('dwTime', ctypes.c_uint)
    
    234 234
                 ]
    
    235 235
     
    
    236
    -        self.lastInputInfo = LastInputInfo()  # type: ignore
    
    236
    +        self.lastInputInfo = LastInputInfo()
    
    237 237
             self.lastInputInfo.cbSize = ctypes.sizeof(self.lastInputInfo)
    
    238 238
     
    
    239 239
         def get_idle_sec(self) -> int:
    

  • gajim/gtk/certificate_dialog.py
    ... ... @@ -92,10 +92,10 @@ def __init__(self, account: str, cert: Gio.TlsCertificate) -> None:
    92 92
                 expires = datetime.strptime(after.decode('ascii'), '%Y%m%d%H%M%SZ')
    
    93 93
                 self._expires = expires.strftime('%c %Z')
    
    94 94
     
    
    95
    -        sha1 = certificate.digest('sha1').decode('utf-8')  # type: ignore
    
    95
    +        sha1 = certificate.digest('sha1').decode('utf-8')
    
    96 96
             self._sha1 = '%s\n%s' % (sha1[:29], sha1[30:])
    
    97 97
     
    
    98
    -        sha256 = certificate.digest('sha256').decode('utf-8')  # type: ignore
    
    98
    +        sha256 = certificate.digest('sha256').decode('utf-8')
    
    99 99
             self._sha256 = '%s\n%s\n%s\n%s' % (
    
    100 100
                 sha256[:23], sha256[24:47], sha256[48:71], sha256[72:])
    
    101 101
     
    

  • gajim/gtk/groupchat_config.py
    ... ... @@ -96,7 +96,7 @@ def _on_config_received(self, task: Task) -> None:
    96 96
             self._ui.stack.set_visible_child_name('config')
    
    97 97
     
    
    98 98
         def _on_apply(self, button: Gtk.Button) -> None:
    
    99
    -        form = self._data_form_widget.get_submit_form()  # type: ignore
    
    99
    +        form = self._data_form_widget.get_submit_form()
    
    100 100
     
    
    101 101
             self._data_form_widget.set_sensitive(False)
    
    102 102
     
    

  • gajim/plugins/plugins_i18n.py
    ... ... @@ -39,4 +39,4 @@
    39 39
         _ = gettext.gettext
    
    40 40
     
    
    41 41
     if hasattr(locale, 'bindtextdomain'):
    
    42
    -    locale.bindtextdomain(DOMAIN, plugins_locale_dir)  # type: ignore
    42
    +    locale.bindtextdomain(DOMAIN, plugins_locale_dir)

  • pyrightconfig.json
    ... ... @@ -4,6 +4,7 @@
    4 4
         "typeCheckingMode": "strict",
    
    5 5
         "reportImportCycles": "none",
    
    6 6
         "reportImplicitStringConcatenation": "none",
    
    7
    +    "reportUnnecessaryTypeIgnoreComment": "error",
    
    7 8
         "reportMissingModuleSource": "none",
    
    8 9
         "exclude": [
    
    9 10
             "**/__pycache__",