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


Commits:
1945cf94 by wurstsalat at 2022-12-10T17:50:41+01:00
cq: Fix ruff errors

- - - - -


2 changed files:

- gajim/gtk/filechoosers.py
- gajim/plugins/pluginmanager.py


Changes:

=====================================
gajim/gtk/filechoosers.py
=====================================
@@ -51,10 +51,10 @@ class BaseFileChooser:
 
     _preview_size: tuple[int, int]
 
-    def add_filter(self, filter: Gtk.FileFilter) -> None:
+    def add_filter(self, filter: Gtk.FileFilter) -> None:  # noqa
         pass
 
-    def set_filter(self, filter: Gtk.FileFilter) -> None:
+    def set_filter(self, filter: Gtk.FileFilter) -> None:  # noqa
         pass
 
     def _on_response(self,


=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -52,6 +52,7 @@
 
 log = logging.getLogger('gajim.p.manager')
 
+RmErrorT = tuple[type[BaseException], BaseException, TracebackType]
 
 BLOCKED_PLUGINS = [
     'appindicator_integration',
@@ -714,11 +715,9 @@ def install_from_zip(self,
         return self.add_plugin(manifest)
 
     def delete_plugin_files(self, plugin_path: Path) -> None:
-        ErrorT = tuple[type[BaseException], BaseException, TracebackType]
-
         def _on_error(func: Callable[..., Any],
                       path: Path,
-                      error: ErrorT
+                      error: RmErrorT
                       ) -> None:
 
             if func is os.path.islink:



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1945cf9456dbb96673295e80422be4be6fe1f7d0
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