mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: fix bad-mcs-classmethod-argument
Reviewed-By: Tomas Krizek <tkrizek@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
f252f50987
commit
8420d04f38
@ -82,11 +82,11 @@ def run_generator_with_yield_from(gen):
|
|||||||
|
|
||||||
|
|
||||||
class InnerClassMeta(type):
|
class InnerClassMeta(type):
|
||||||
def __new__(cls, name, bases, class_dict):
|
def __new__(mcs, name, bases, class_dict):
|
||||||
class_dict.pop('__outer_class__', None)
|
class_dict.pop('__outer_class__', None)
|
||||||
class_dict.pop('__outer_name__', None)
|
class_dict.pop('__outer_name__', None)
|
||||||
|
|
||||||
return super(InnerClassMeta, cls).__new__(cls, name, bases, class_dict)
|
return super(InnerClassMeta, mcs).__new__(mcs, name, bases, class_dict)
|
||||||
|
|
||||||
def __get__(self, obj, obj_type):
|
def __get__(self, obj, obj_type):
|
||||||
outer_class, outer_name = self.__bind(obj_type)
|
outer_class, outer_name = self.__bind(obj_type)
|
||||||
|
1
pylintrc
1
pylintrc
@ -60,7 +60,6 @@ disable=
|
|||||||
unused-variable,
|
unused-variable,
|
||||||
useless-else-on-loop,
|
useless-else-on-loop,
|
||||||
bad-continuation,
|
bad-continuation,
|
||||||
bad-mcs-classmethod-argument,
|
|
||||||
bad-mcs-method-argument,
|
bad-mcs-method-argument,
|
||||||
bad-whitespace,
|
bad-whitespace,
|
||||||
blacklisted-name,
|
blacklisted-name,
|
||||||
|
Loading…
Reference in New Issue
Block a user