[gnome-builder/wip/gtk4-port] plugins/lsp: remove self from super() call



commit 7443859dd3a6ca7ecbece1ddd50ca944387acee0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 20 12:30:42 2022 -0700

    plugins/lsp: remove self from super() call
    
    I don't believe you need to pass self here with super().__init__().

 src/plugins/jedi-language-server/jedi_language_server_plugin.py | 2 +-
 src/plugins/jhbuild/jhbuild_plugin.py                           | 2 +-
 src/plugins/vls/vala_langserv.py                                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/jedi-language-server/jedi_language_server_plugin.py 
b/src/plugins/jedi-language-server/jedi_language_server_plugin.py
index ffa109a66..5364dd2f2 100644
--- a/src/plugins/jedi-language-server/jedi_language_server_plugin.py
+++ b/src/plugins/jedi-language-server/jedi_language_server_plugin.py
@@ -31,7 +31,7 @@ DEV_MODE = os.getenv('DEV_MODE') and True or False
 
 class JediService(Ide.LspService):
     def __init__(self, *args, **kwargs):
-        super().__init__(self, *args, **kwargs)
+        super().__init__(*args, **kwargs)
         self.set_program('jedi-language-server')
         self.set_inherit_stderr(DEV_MODE)
 
diff --git a/src/plugins/jhbuild/jhbuild_plugin.py b/src/plugins/jhbuild/jhbuild_plugin.py
index 9f2328454..38c6d250d 100644
--- a/src/plugins/jhbuild/jhbuild_plugin.py
+++ b/src/plugins/jhbuild/jhbuild_plugin.py
@@ -93,7 +93,7 @@ class JhbuildRuntimeProvider(Ide.Object, Ide.RuntimeProvider):
     __gtype_name__ = 'JhbuildRuntimeProvider'
 
     def __init__(self, *args, **kwargs):
-        super().__init__(self, *args, **kwargs)
+        super().__init__(*args, **kwargs)
         self.runtimes = []
 
     @staticmethod
diff --git a/src/plugins/vls/vala_langserv.py b/src/plugins/vls/vala_langserv.py
index 73237c1ca..2681ab602 100644
--- a/src/plugins/vls/vala_langserv.py
+++ b/src/plugins/vls/vala_langserv.py
@@ -37,7 +37,7 @@ DEV_MODE = os.getenv('DEV_MODE') and True or False
 
 class VlsService(Ide.LspService):
     def __init__(self, *args, **kwargs):
-        super().__init__(self, *args, **kwargs)
+        super().__init__(*args, **kwargs)
         self.set_program('vala-language-server')
         self.set_inherit_stderr(DEV_MODE)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]