fix: fix 'abstract-method' for pylint
This commit is contained in:
parent
d01c343a7c
commit
5a6ed6135a
10 changed files with 13 additions and 14 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
[MESSAGES CONTROL]
|
||||
disable=fixme,
|
||||
abstract-method,
|
||||
arguments-differ,
|
||||
arguments-renamed,
|
||||
assignment-from-no-return,
|
||||
|
|
|
@ -69,7 +69,7 @@ class WuttaDateTime(colander.DateTime):
|
|||
node.raise_invalid("Invalid date and/or time")
|
||||
|
||||
|
||||
class ObjectNode(colander.SchemaNode):
|
||||
class ObjectNode(colander.SchemaNode): # pylint: disable=abstract-method
|
||||
"""
|
||||
Custom schema node class which adds methods for compatibility with
|
||||
ColanderAlchemy. This is a direct subclass of
|
||||
|
|
|
@ -299,7 +299,7 @@ class WuttaMoneyInputWidget(MoneyInputWidget):
|
|||
return super().serialize(field, cstruct, **kw)
|
||||
|
||||
|
||||
class FileDownloadWidget(Widget):
|
||||
class FileDownloadWidget(Widget): # pylint: disable=abstract-method
|
||||
"""
|
||||
Widget for use with :class:`~wuttaweb.forms.schema.FileDownload`
|
||||
fields.
|
||||
|
@ -357,7 +357,7 @@ class FileDownloadWidget(Widget):
|
|||
return humanize.naturalsize(size)
|
||||
|
||||
|
||||
class GridWidget(Widget):
|
||||
class GridWidget(Widget): # pylint: disable=abstract-method
|
||||
"""
|
||||
Widget for fields whose data is represented by a :term:`grid`.
|
||||
|
||||
|
@ -512,7 +512,7 @@ class EmailRecipientsWidget(TextAreaWidget):
|
|||
return ", ".join(values)
|
||||
|
||||
|
||||
class BatchIdWidget(Widget):
|
||||
class BatchIdWidget(Widget): # pylint: disable=abstract-method
|
||||
"""
|
||||
Widget for use with the
|
||||
:attr:`~wuttjamaican:wuttjamaican.db.model.batch.BatchMixin.id`
|
||||
|
|
|
@ -30,7 +30,7 @@ from wuttaweb.views import MasterView
|
|||
from wuttaweb.forms.schema import EmailRecipients
|
||||
|
||||
|
||||
class EmailSettingView(MasterView):
|
||||
class EmailSettingView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for :term:`email settings <email setting>`.
|
||||
"""
|
||||
|
|
|
@ -30,7 +30,7 @@ from wuttjamaican.db.model import Person
|
|||
from wuttaweb.views import MasterView
|
||||
|
||||
|
||||
class PersonView(MasterView):
|
||||
class PersonView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for people.
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ from wuttaweb.views import MasterView
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ReportView(MasterView):
|
||||
class ReportView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for :term:`reports <report>`; route prefix is
|
||||
``reports``.
|
||||
|
|
|
@ -31,7 +31,7 @@ from wuttaweb.forms import widgets
|
|||
from wuttaweb.forms.schema import Permissions, RoleRef
|
||||
|
||||
|
||||
class RoleView(MasterView):
|
||||
class RoleView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for roles.
|
||||
|
||||
|
@ -317,7 +317,7 @@ class RoleView(MasterView):
|
|||
)
|
||||
|
||||
|
||||
class PermissionView(MasterView):
|
||||
class PermissionView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for permissions.
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ from wuttaweb.views import MasterView
|
|||
from wuttaweb.util import get_libver, get_liburl
|
||||
|
||||
|
||||
class AppInfoView(MasterView):
|
||||
class AppInfoView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for the core app info, to show/edit config etc.
|
||||
|
||||
|
@ -220,7 +220,7 @@ class AppInfoView(MasterView):
|
|||
return context
|
||||
|
||||
|
||||
class SettingView(MasterView):
|
||||
class SettingView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for the "raw" settings table.
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ from wuttaweb.progress import get_progress_session
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class UpgradeView(MasterView):
|
||||
class UpgradeView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for upgrades.
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ from wuttaweb.forms import widgets
|
|||
from wuttaweb.forms.schema import PersonRef, RoleRefs
|
||||
|
||||
|
||||
class UserView(MasterView):
|
||||
class UserView(MasterView): # pylint: disable=abstract-method
|
||||
"""
|
||||
Master view for users.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue