fix: fix 'too-many-locals' for pylint
This commit is contained in:
parent
95aeb87899
commit
1dd184622f
4 changed files with 4 additions and 5 deletions
|
@ -8,5 +8,4 @@ disable=fixme,
|
|||
duplicate-code,
|
||||
keyword-arg-before-vararg,
|
||||
no-member,
|
||||
too-many-locals,
|
||||
too-many-nested-blocks,
|
||||
|
|
|
@ -268,7 +268,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__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments,too-many-locals
|
||||
self,
|
||||
request,
|
||||
fields=None,
|
||||
|
@ -983,7 +983,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
output = render(template, context)
|
||||
return HTML.literal(output)
|
||||
|
||||
def render_vue_field( # pylint: disable=unused-argument
|
||||
def render_vue_field( # pylint: disable=unused-argument,too-many-locals
|
||||
self,
|
||||
fieldname,
|
||||
readonly=None,
|
||||
|
|
|
@ -372,7 +372,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
See also :meth:`add_tool()` and :meth:`set_tools()`.
|
||||
"""
|
||||
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments,too-many-locals
|
||||
self,
|
||||
request,
|
||||
vue_tagname="wutta-grid",
|
||||
|
|
|
@ -135,7 +135,7 @@ class CommonView(View):
|
|||
""" """
|
||||
self.app.send_email("feedback", context)
|
||||
|
||||
def setup(self, session=None):
|
||||
def setup(self, session=None): # pylint: disable=too-many-locals
|
||||
"""
|
||||
View for first-time app setup, to create admin user.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue