fix: fix 'no-self-argument' for pylint
This commit is contained in:
parent
5a0d59ee36
commit
c439bacf4f
2 changed files with 6 additions and 7 deletions
|
@ -19,4 +19,3 @@ disable=fixme,
|
|||
missing-function-docstring,
|
||||
no-else-return,
|
||||
no-member,
|
||||
no-self-argument,
|
||||
|
|
|
@ -57,7 +57,7 @@ class NewOrderBatch(model.BatchMixin, model.Base):
|
|||
"""
|
||||
|
||||
@declared_attr
|
||||
def __table_args__(cls):
|
||||
def __table_args__(cls): # pylint: disable=no-self-argument
|
||||
return cls.__default_table_args__() + (
|
||||
sa.ForeignKeyConstraint(
|
||||
["local_customer_uuid"], ["sideshow_customer_local.uuid"]
|
||||
|
@ -95,7 +95,7 @@ class NewOrderBatch(model.BatchMixin, model.Base):
|
|||
local_customer_uuid = sa.Column(model.UUID(), nullable=True)
|
||||
|
||||
@declared_attr
|
||||
def local_customer(cls):
|
||||
def local_customer(cls): # pylint: disable=no-self-argument
|
||||
return orm.relationship(
|
||||
"LocalCustomer",
|
||||
back_populates="new_order_batches",
|
||||
|
@ -111,7 +111,7 @@ class NewOrderBatch(model.BatchMixin, model.Base):
|
|||
pending_customer_uuid = sa.Column(model.UUID(), nullable=True)
|
||||
|
||||
@declared_attr
|
||||
def pending_customer(cls):
|
||||
def pending_customer(cls): # pylint: disable=no-self-argument
|
||||
return orm.relationship(
|
||||
"PendingCustomer",
|
||||
back_populates="new_order_batches",
|
||||
|
@ -170,7 +170,7 @@ class NewOrderBatchRow(model.BatchRowMixin, model.Base):
|
|||
__batch_class__ = NewOrderBatch
|
||||
|
||||
@declared_attr
|
||||
def __table_args__(cls):
|
||||
def __table_args__(cls): # pylint: disable=no-self-argument
|
||||
return cls.__default_table_args__() + (
|
||||
sa.ForeignKeyConstraint(
|
||||
["local_product_uuid"], ["sideshow_product_local.uuid"]
|
||||
|
@ -222,7 +222,7 @@ class NewOrderBatchRow(model.BatchRowMixin, model.Base):
|
|||
local_product_uuid = sa.Column(model.UUID(), nullable=True)
|
||||
|
||||
@declared_attr
|
||||
def local_product(cls):
|
||||
def local_product(cls): # pylint: disable=no-self-argument
|
||||
return orm.relationship(
|
||||
"LocalProduct",
|
||||
back_populates="new_order_batch_rows",
|
||||
|
@ -238,7 +238,7 @@ class NewOrderBatchRow(model.BatchRowMixin, model.Base):
|
|||
pending_product_uuid = sa.Column(model.UUID(), nullable=True)
|
||||
|
||||
@declared_attr
|
||||
def pending_product(cls):
|
||||
def pending_product(cls): # pylint: disable=no-self-argument
|
||||
return orm.relationship(
|
||||
"PendingProduct",
|
||||
back_populates="new_order_batch_rows",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue