fix: fix 'too-many-branches' for pylint
This commit is contained in:
parent
becf4fa822
commit
a4c9e3070c
3 changed files with 4 additions and 3 deletions
|
@ -23,4 +23,3 @@ disable=fixme,
|
|||
redefined-outer-name,
|
||||
singleton-comparison,
|
||||
too-few-public-methods,
|
||||
too-many-branches,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue