From 6ac1cacdb32e4f11aeb29800026d37a1250abf5a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 30 Aug 2025 19:07:41 -0500 Subject: [PATCH] fix: fix 'assignment-from-none' for pylint --- .pylintrc | 1 + src/wuttjamaican/batch.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 782030d..57b6b0d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,6 +4,7 @@ disable=all enable=anomalous-backslash-in-string, assignment-from-no-return, + assignment-from-none, bare-except, broad-exception-caught, dangerous-default-value, diff --git a/src/wuttjamaican/batch.py b/src/wuttjamaican/batch.py index d263360..d87d70e 100644 --- a/src/wuttjamaican/batch.py +++ b/src/wuttjamaican/batch.py @@ -468,11 +468,11 @@ class BatchHandler(GenericHandler): if batch.executed: raise ValueError(f"batch has already been executed: {batch}") - reason = self.why_not_execute(batch, user=user, **kwargs) + reason = self.why_not_execute(batch, user=user, **kwargs) # pylint: disable=assignment-from-none if reason: raise RuntimeError(f"batch execution not allowed: {reason}") - result = self.execute(batch, user=user, progress=progress, **kwargs) + result = self.execute(batch, user=user, progress=progress, **kwargs) # pylint: disable=assignment-from-none batch.executed = datetime.datetime.now() batch.executed_by = user return result