fix: fix 'too-many-arguments' for pylint
This commit is contained in:
parent
282fc61e50
commit
0dc6b615e7
5 changed files with 6 additions and 8 deletions
|
@ -26,8 +26,6 @@ disable=fixme,
|
|||
singleton-comparison,
|
||||
super-init-not-called,
|
||||
too-few-public-methods,
|
||||
too-many-arguments,
|
||||
too-many-lines,
|
||||
too-many-locals,
|
||||
too-many-nested-blocks,
|
||||
too-many-positional-arguments,
|
||||
|
|
|
@ -267,7 +267,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
Note that in all other cases, this attribute may not exist.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
self,
|
||||
request,
|
||||
fields=None,
|
||||
|
|
|
@ -371,7 +371,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
See also :meth:`add_tool()` and :meth:`set_tools()`.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
self,
|
||||
request,
|
||||
vue_tagname="wutta-grid",
|
||||
|
@ -1628,7 +1628,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
|
||||
return False
|
||||
|
||||
def get_setting( # pylint: disable=empty-docstring
|
||||
def get_setting( # pylint: disable=empty-docstring,too-many-arguments,too-many-positional-arguments
|
||||
self, settings, key, src="session", default=None, normalize=lambda v: v
|
||||
):
|
||||
""" """
|
||||
|
@ -2539,7 +2539,7 @@ class GridAction: # pylint: disable=too-many-instance-attributes
|
|||
Optional HTML class attribute for the action's ``<a>`` tag.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
self,
|
||||
request,
|
||||
key,
|
||||
|
|
|
@ -169,7 +169,7 @@ class GridFilter: # pylint: disable=too-many-instance-attributes
|
|||
"is_not_null",
|
||||
]
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
self,
|
||||
request,
|
||||
key,
|
||||
|
|
|
@ -91,7 +91,7 @@ class SessionProgress(ProgressBase): # pylint: disable=too-many-instance-attrib
|
|||
:attr:`success_url`.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
self, request, key, success_msg=None, success_url=None, error_url=None
|
||||
):
|
||||
self.request = request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue