make pylint happy with GetSlices.py as well
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 23 Sep 2024 16:27:11 +0000 (18:27 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 23 Sep 2024 16:27:11 +0000 (18:27 +0200)
PLC/Methods/GetSlices.py

index f6ba0d6..43ce605 100644 (file)
@@ -1,10 +1,18 @@
+# focusing on pylint, ignoring flake8
+# flake8: noqa
+
+# pylint: disable=arguments-differ
+# pylint: disable=redefined-builtin
+# pylint: disable=missing-docstring
+# pylint: disable=invalid-name
+
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Filter import Filter
 from PLC.Auth import Auth
-from PLC.Persons import Person, Persons
+from PLC.Persons import Person  # , Persons
 from PLC.Nodes import Nodes
-from PLC.Sites import Site, Sites
+from PLC.Sites import Sites  # , Site
 from PLC.Slices import Slice, Slices
 
 class GetSlices(Method):
@@ -40,7 +48,7 @@ class GetSlices(Method):
 
     returns = [Slice.fields]
 
-    def call(self, auth, slice_filter = None, return_fields = None):
+    def call(self, _auth, slice_filter = None, return_fields = None):
         # If we are not admin, make sure to return only viewable
         # slices.
         if isinstance(self.caller, Person) and \