3
0
Fork 0

fix: fix 'arguments-differ' for pylint

This commit is contained in:
Lance Edgar 2025-09-01 11:21:44 -05:00
parent e123b12cd9
commit 459c16ba4f
5 changed files with 13 additions and 6 deletions

View file

@ -2,7 +2,6 @@
[MESSAGES CONTROL]
disable=fixme,
arguments-differ,
arguments-renamed,
attribute-defined-outside-init,
duplicate-code,

View file

@ -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"]

View file

@ -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)

View file

@ -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

View file

@ -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)