From: Thierry Parmentelat Date: Mon, 23 Sep 2024 16:27:11 +0000 (+0200) Subject: make pylint happy with GetSlices.py as well X-Git-Tag: plcapi-7.2-1~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b712657edb483890987e10dba39289e6745c9a32;p=plcapi.git make pylint happy with GetSlices.py as well --- diff --git a/PLC/Methods/GetSlices.py b/PLC/Methods/GetSlices.py index f6ba0d67..43ce6053 100644 --- a/PLC/Methods/GetSlices.py +++ b/PLC/Methods/GetSlices.py @@ -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 \