[Lint] Enable pylint warning super-init-not-called
This commit is contained in:
parent
d8242b4ef0
commit
f96b9c8a23
|
@ -82,7 +82,7 @@ disable=
|
|||
too-many-nested-blocks, too-many-return-statements,
|
||||
# Warning
|
||||
unused-argument, protected-access, import-error, unused-variable,
|
||||
attribute-defined-outside-init, super-init-not-called,
|
||||
attribute-defined-outside-init,
|
||||
# Warning msgs that should eventually be enabled:
|
||||
arguments-differ, global-statement, fixme, broad-except
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ class DelugeError(Exception):
|
|||
return inst
|
||||
|
||||
def __init__(self, message=None):
|
||||
super(DelugeError, self).__init__(message)
|
||||
self.message = message
|
||||
|
||||
def __str__(self):
|
||||
|
@ -43,7 +44,7 @@ class InvalidPathError(DelugeError):
|
|||
class WrappedException(DelugeError):
|
||||
|
||||
def __init__(self, message, exception_type, traceback):
|
||||
self.message = message
|
||||
super(WrappedException, self).__init__(message)
|
||||
self.type = exception_type
|
||||
self.traceback = traceback
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ class GzipResource(Resource):
|
|||
class PartialDownloadResource(Resource):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
Resource.__init__(self)
|
||||
self.render_count = 0
|
||||
|
||||
def render(self, request):
|
||||
|
|
|
@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
|
|||
class BaseField(InputKeyHandler):
|
||||
|
||||
def __init__(self, parent=None, name=None, selectable=True, **kwargs):
|
||||
super(BaseField, self).__init__()
|
||||
self.name = name
|
||||
self.parent = parent
|
||||
self.fmt_keys = {}
|
||||
|
|
|
@ -31,6 +31,7 @@ class BaseInputPane(InputKeyHandler):
|
|||
def __init__(self, mode, allow_rearrange=False, immediate_action=False, set_first_input_active=True,
|
||||
border_off_west=0, border_off_north=0, border_off_east=0, border_off_south=0,
|
||||
active_wrap=False, **kwargs):
|
||||
InputKeyHandler.__init__(self)
|
||||
self.inputs = []
|
||||
self.mode = mode
|
||||
self.active_input = 0
|
||||
|
|
Loading…
Reference in New Issue