fix: fix 'arguments-differ' for pylint
This commit is contained in:
parent
e123b12cd9
commit
459c16ba4f
5 changed files with 13 additions and 6 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
[MESSAGES CONTROL]
|
||||
disable=fixme,
|
||||
arguments-differ,
|
||||
arguments-renamed,
|
||||
attribute-defined-outside-init,
|
||||
duplicate-code,
|
||||
|
|
|
@ -136,7 +136,9 @@ class EmailSettingView(MasterView): # pylint: disable=abstract-method
|
|||
recips = ", ".join(recips[:2])
|
||||
return f"{recips}, ..."
|
||||
|
||||
def get_instance(self): # pylint: disable=empty-docstring
|
||||
def get_instance( # pylint: disable=empty-docstring,arguments-differ,unused-argument
|
||||
self, **kwargs
|
||||
):
|
||||
""" """
|
||||
key = self.request.matchdict["key"]
|
||||
setting = self.email_handler.get_email_setting(key, instance=False)
|
||||
|
@ -175,7 +177,9 @@ class EmailSettingView(MasterView): # pylint: disable=abstract-method
|
|||
# enabled
|
||||
f.set_node("enabled", colander.Boolean())
|
||||
|
||||
def persist(self, setting): # pylint: disable=too-many-branches,empty-docstring
|
||||
def persist( # pylint: disable=too-many-branches,empty-docstring,arguments-differ,unused-argument
|
||||
self, setting, **kwargs
|
||||
):
|
||||
""" """
|
||||
session = self.Session()
|
||||
key = self.request.matchdict["key"]
|
||||
|
|
|
@ -103,7 +103,9 @@ class ReportView(MasterView): # pylint: disable=abstract-method
|
|||
# help_text
|
||||
g.set_searchable("help_text")
|
||||
|
||||
def get_instance(self): # pylint: disable=empty-docstring
|
||||
def get_instance( # pylint: disable=empty-docstring,arguments-differ,unused-argument
|
||||
self, **kwargs
|
||||
):
|
||||
""" """
|
||||
key = self.request.matchdict["report_key"]
|
||||
report = self.report_handler.get_report(key)
|
||||
|
|
|
@ -346,7 +346,7 @@ class PermissionView(MasterView): # pylint: disable=abstract-method
|
|||
"permission",
|
||||
]
|
||||
|
||||
def get_query(self, **kwargs): # pylint: disable=empty-docstring
|
||||
def get_query(self, **kwargs): # pylint: disable=empty-docstring,arguments-differ
|
||||
""" """
|
||||
query = super().get_query(**kwargs)
|
||||
model = self.app.model
|
||||
|
|
|
@ -173,7 +173,9 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
|
|||
|
||||
return simple_settings
|
||||
|
||||
def configure_get_context(self, **kwargs): # pylint: disable=empty-docstring
|
||||
def configure_get_context( # pylint: disable=empty-docstring,arguments-differ
|
||||
self, **kwargs
|
||||
):
|
||||
""" """
|
||||
context = super().configure_get_context(**kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue