3
0
Fork 0

fix: fix 'assignment-from-no-return' for pylint

This commit is contained in:
Lance Edgar 2025-08-30 19:05:40 -05:00
parent 99e6b98627
commit 3a263d272c
2 changed files with 5 additions and 2 deletions

View file

@ -3,6 +3,7 @@
[MESSAGES CONTROL] [MESSAGES CONTROL]
disable=all disable=all
enable=anomalous-backslash-in-string, enable=anomalous-backslash-in-string,
assignment-from-no-return,
bare-except, bare-except,
broad-exception-caught, broad-exception-caught,
dangerous-default-value, dangerous-default-value,

View file

@ -348,7 +348,7 @@ class BatchHandler(GenericHandler):
* :attr:`~wuttjamaican.db.model.batch.BatchMixin.status_text` * :attr:`~wuttjamaican.db.model.batch.BatchMixin.status_text`
""" """
def why_not_execute(self, batch, user=None, **kwargs): def why_not_execute(self, batch, user=None, **kwargs): # pylint: disable=unused-argument
""" """
Returns text indicating the reason (if any) that a given batch Returns text indicating the reason (if any) that a given batch
should *not* be executed. should *not* be executed.
@ -385,6 +385,7 @@ class BatchHandler(GenericHandler):
raise a ``RuntimeError`` if text was returned. This is done raise a ``RuntimeError`` if text was returned. This is done
out of safety, to avoid relying on the user interface. out of safety, to avoid relying on the user interface.
""" """
return None
def describe_execution(self, batch, user=None, **kwargs): def describe_execution(self, batch, user=None, **kwargs):
""" """
@ -476,7 +477,7 @@ class BatchHandler(GenericHandler):
batch.executed_by = user batch.executed_by = user
return result return result
def execute(self, batch, user=None, progress=None, **kwargs): def execute(self, batch, user=None, progress=None, **kwargs): # pylint: disable=unused-argument
""" """
Execute the given batch. Execute the given batch.
@ -502,6 +503,7 @@ class BatchHandler(GenericHandler):
whatever it likes, in which case that will be also returned whatever it likes, in which case that will be also returned
to the caller from :meth:`do_execute()`. to the caller from :meth:`do_execute()`.
""" """
return None
def do_delete(self, batch, user, dry_run=False, progress=None, **kwargs): # pylint: disable=unused-argument def do_delete(self, batch, user, dry_run=False, progress=None, **kwargs): # pylint: disable=unused-argument
""" """