pylint: remove arguments-renamed warnings

Related: https://pagure.io/freeipa/issue/9278

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
Florence Blanc-Renaud
2022-11-21 09:47:59 +01:00
parent be7f0a6e5e
commit 8cd9ddfdeb
4 changed files with 6 additions and 3 deletions

View File

@@ -545,6 +545,7 @@ class group_find(LDAPSearch):
),
)
# pylint: disable-next=arguments-renamed
def pre_callback(self, ldap, filter, attrs_list, base_dn, scope,
criteria=None, **options):
assert isinstance(base_dn, DN)

View File

@@ -177,7 +177,7 @@ class metaobject(MetaObject):
def _iter_params(self, metaobj):
raise NotImplementedError()
def _get_obj(self, metaobj, all=False, **kwargs):
def _get_obj(self, metaobj, all=False, **kwargs): # pylint: disable=W0237
obj = dict()
obj['name'] = unicode(metaobj.name)
obj['version'] = unicode(metaobj.version)
@@ -470,6 +470,7 @@ class BaseParam(BaseMetaObject):
def parent(self):
raise AttributeError('parent')
# pylint: disable-next=arguments-renamed
def _split_search_args(self, parent_name, criteria=None):
return [parent_name], criteria
@@ -495,6 +496,7 @@ class BaseParamRetrieve(BaseParamMethod, BaseMetaRetrieve):
class BaseParamSearch(BaseParamMethod, BaseMetaSearch):
# pylint: disable-next=arguments-renamed
def execute(self, command, criteria=None, **options):
result = list(self.obj.search(command, criteria, **options))
return dict(result=result, count=len(result), truncated=False)

View File

@@ -101,7 +101,7 @@ class IdpTracker(Tracker):
""" Make function that finds idp using idp-find """
return self.make_command('idp_find', *args, **kwargs)
def check_find(self, result, all=False, pkey_only=False, raw=False):
def check_find(self, result, all=False, raw=False, pkey_only=False):
""" Check idp-find command result """
if all:
expected = self.filter_attrs(self.find_all_keys)

View File

@@ -312,7 +312,7 @@ class UserTracker(CertmapdataMixin, KerberosAliasMixin, Tracker):
result=expected,
), result)
def check_find(self, result, all=False, pkey_only=False, raw=False,
def check_find(self, result, all=False, raw=False, pkey_only=False,
expected_override=None):
""" Check 'user-find' command result """
if all: