Philipp Hörist pushed to branch master at gajim / gajim
Commits: c8cf5511 by lovetox at 2022-08-12T23:00:23+02:00 cq: Remove not needed ignore comments
- - - - -
5 changed files:
- gajim/common/idle.py - gajim/gtk/certificate_dialog.py - gajim/gtk/groupchat_config.py - gajim/plugins/plugins_i18n.py - pyrightconfig.json
Changes:
===================================== gajim/common/idle.py ===================================== @@ -233,7 +233,7 @@ class LastInputInfo(ctypes.Structure): ('dwTime', ctypes.c_uint) ]
- self.lastInputInfo = LastInputInfo() # type: ignore + self.lastInputInfo = LastInputInfo() self.lastInputInfo.cbSize = ctypes.sizeof(self.lastInputInfo)
def get_idle_sec(self) -> int:
===================================== gajim/gtk/certificate_dialog.py ===================================== @@ -92,10 +92,10 @@ def __init__(self, account: str, cert: Gio.TlsCertificate) -> None: expires = datetime.strptime(after.decode('ascii'), '%Y%m%d%H%M%SZ') self._expires = expires.strftime('%c %Z')
- sha1 = certificate.digest('sha1').decode('utf-8') # type: ignore + sha1 = certificate.digest('sha1').decode('utf-8') self._sha1 = '%s\n%s' % (sha1[:29], sha1[30:])
- sha256 = certificate.digest('sha256').decode('utf-8') # type: ignore + sha256 = certificate.digest('sha256').decode('utf-8') self._sha256 = '%s\n%s\n%s\n%s' % ( sha256[:23], sha256[24:47], sha256[48:71], sha256[72:])
===================================== gajim/gtk/groupchat_config.py ===================================== @@ -96,7 +96,7 @@ def _on_config_received(self, task: Task) -> None: self._ui.stack.set_visible_child_name('config')
def _on_apply(self, button: Gtk.Button) -> None: - form = self._data_form_widget.get_submit_form() # type: ignore + form = self._data_form_widget.get_submit_form()
self._data_form_widget.set_sensitive(False)
===================================== gajim/plugins/plugins_i18n.py ===================================== @@ -39,4 +39,4 @@ _ = gettext.gettext
if hasattr(locale, 'bindtextdomain'): - locale.bindtextdomain(DOMAIN, plugins_locale_dir) # type: ignore + locale.bindtextdomain(DOMAIN, plugins_locale_dir)
===================================== pyrightconfig.json ===================================== @@ -4,6 +4,7 @@ "typeCheckingMode": "strict", "reportImportCycles": "none", "reportImplicitStringConcatenation": "none", + "reportUnnecessaryTypeIgnoreComment": "error", "reportMissingModuleSource": "none", "exclude": [ "**/__pycache__",
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c8cf55114fce22d5bb8a98f3ff22f5bb6...