diff --git a/.pylintrc b/.pylintrc index aaecedd..0c97462 100644 --- a/.pylintrc +++ b/.pylintrc @@ -19,4 +19,3 @@ disable=fixme, missing-function-docstring, no-else-return, no-member, - no-self-argument, diff --git a/src/sideshow/db/model/batch/neworder.py b/src/sideshow/db/model/batch/neworder.py index bae0a79..b300a8d 100644 --- a/src/sideshow/db/model/batch/neworder.py +++ b/src/sideshow/db/model/batch/neworder.py @@ -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",