From b712657edb483890987e10dba39289e6745c9a32 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 23 Sep 2024 18:27:11 +0200 Subject: [PATCH] make pylint happy with GetSlices.py as well --- PLC/Methods/GetSlices.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 \ -- 2.47.0