From a4c9e3070c9b617edfa021380d9d826669587535 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Sep 2025 14:20:09 -0500 Subject: [PATCH] fix: fix 'too-many-branches' for pylint --- .pylintrc | 1 - src/sideshow/batch/neworder.py | 2 +- src/sideshow/web/views/orders.py | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index 941e807..2388fdc 100644 --- a/.pylintrc +++ b/.pylintrc @@ -23,4 +23,3 @@ disable=fixme, redefined-outer-name, singleton-comparison, too-few-public-methods, - too-many-branches, diff --git a/src/sideshow/batch/neworder.py b/src/sideshow/batch/neworder.py index 38d07b9..f445f4f 100644 --- a/src/sideshow/batch/neworder.py +++ b/src/sideshow/batch/neworder.py @@ -871,7 +871,7 @@ class NewOrderBatchHandler(BatchHandler): # pylint: disable=too-many-public-met # refresh per new info self.refresh_row(row) - def refresh_row(self, row): + def refresh_row(self, row): # pylint: disable=too-many-branches """ Refresh data for the row. This is called when adding a new row to the batch, or anytime the row is updated (e.g. when diff --git a/src/sideshow/web/views/orders.py b/src/sideshow/web/views/orders.py index 6f41034..ebdba40 100644 --- a/src/sideshow/web/views/orders.py +++ b/src/sideshow/web/views/orders.py @@ -625,7 +625,9 @@ class OrderView(MasterView): # pylint: disable=too-many-public-methods self.batch_handler.set_customer(batch, data, user=self.request.user) return self.get_context_customer(batch) - def get_product_info(self, batch, data): # pylint: disable=unused-argument + def get_product_info( # pylint: disable=unused-argument,too-many-branches + self, batch, data + ): """ Fetch data for a specific product.