fix: fix 'too-many-branches' for pylint

This commit is contained in:
Lance Edgar 2025-09-01 14:20:09 -05:00
parent becf4fa822
commit a4c9e3070c
3 changed files with 4 additions and 3 deletions

View file

@ -23,4 +23,3 @@ disable=fixme,
redefined-outer-name, redefined-outer-name,
singleton-comparison, singleton-comparison,
too-few-public-methods, too-few-public-methods,
too-many-branches,

View file

@ -871,7 +871,7 @@ class NewOrderBatchHandler(BatchHandler): # pylint: disable=too-many-public-met
# refresh per new info # refresh per new info
self.refresh_row(row) 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 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 row to the batch, or anytime the row is updated (e.g. when

View file

@ -625,7 +625,9 @@ class OrderView(MasterView): # pylint: disable=too-many-public-methods
self.batch_handler.set_customer(batch, data, user=self.request.user) self.batch_handler.set_customer(batch, data, user=self.request.user)
return self.get_context_customer(batch) 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. Fetch data for a specific product.