fix: fix 'too-many-instance-attributes' for pylint
This commit is contained in:
parent
9656df7bc9
commit
bb2bde5ecd
5 changed files with 7 additions and 6 deletions
|
@ -4,3 +4,4 @@
|
||||||
disable=all
|
disable=all
|
||||||
enable=
|
enable=
|
||||||
inconsistent-return-statements,
|
inconsistent-return-statements,
|
||||||
|
too-many-instance-attributes,
|
||||||
|
|
|
@ -42,7 +42,7 @@ from wuttaweb.util import FieldList, get_form_data, get_model_fields, make_json_
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Form:
|
class Form: # pylint: disable=too-many-instance-attributes
|
||||||
"""
|
"""
|
||||||
Base class for all forms.
|
Base class for all forms.
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ Elements of :attr:`~Grid.sort_defaults` will be of this type.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class Grid:
|
class Grid: # pylint: disable=too-many-instance-attributes
|
||||||
"""
|
"""
|
||||||
Base class for all :term:`grids <grid>`.
|
Base class for all :term:`grids <grid>`.
|
||||||
|
|
||||||
|
@ -2443,7 +2443,7 @@ class Grid:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class GridAction:
|
class GridAction: # pylint: disable=too-many-instance-attributes
|
||||||
"""
|
"""
|
||||||
Represents a "row action" hyperlink within a grid context.
|
Represents a "row action" hyperlink within a grid context.
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ class VerbNotSupported(Exception):
|
||||||
return f"unknown filter verb not supported: {self.verb}"
|
return f"unknown filter verb not supported: {self.verb}"
|
||||||
|
|
||||||
|
|
||||||
class GridFilter:
|
class GridFilter: # pylint: disable=too-many-instance-attributes
|
||||||
"""
|
"""
|
||||||
Filter option for a grid. Represents both the "features" as well
|
Filter option for a grid. Represents both the "features" as well
|
||||||
as "state" for the filter.
|
as "state" for the filter.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# wuttaweb -- Web App for Wutta Framework
|
# wuttaweb -- Web App for Wutta Framework
|
||||||
# Copyright © 2024 Lance Edgar
|
# Copyright © 2024-2025 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Wutta Framework.
|
# This file is part of Wutta Framework.
|
||||||
#
|
#
|
||||||
|
@ -45,7 +45,7 @@ def get_progress_session(request, key, **kwargs):
|
||||||
return get_basic_session(request, **kwargs)
|
return get_basic_session(request, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class SessionProgress(ProgressBase):
|
class SessionProgress(ProgressBase): # pylint: disable=too-many-instance-attributes
|
||||||
"""
|
"""
|
||||||
Progress indicator which uses Beaker session storage to track
|
Progress indicator which uses Beaker session storage to track
|
||||||
current status.
|
current status.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue