3
0
Fork 0

fix: fix 'no-self-argument' for pylint

This commit is contained in:
Lance Edgar 2025-08-30 20:23:08 -05:00
parent f01f5911da
commit da149e932d
2 changed files with 7 additions and 6 deletions

View file

@ -21,6 +21,7 @@ enable=anomalous-backslash-in-string,
missing-function-docstring,
missing-module-docstring,
no-else-return,
no-self-argument,
redefined-argument-from-local,
too-few-public-methods,
trailing-whitespace,

View file

@ -186,7 +186,7 @@ class BatchMixin:
"""
@declared_attr
def __table_args__(cls):
def __table_args__(cls): # pylint: disable=no-self-argument
return cls.__default_table_args__()
@classmethod
@ -201,7 +201,7 @@ class BatchMixin:
)
@declared_attr
def batch_type(cls): # pylint: disable=empty-docstring
def batch_type(cls): # pylint: disable=empty-docstring,no-self-argument
""" """
return cls.__tablename__
@ -228,7 +228,7 @@ class BatchMixin:
created_by_uuid = sa.Column(UUID(), nullable=False)
@declared_attr
def created_by(cls): # pylint: disable=empty-docstring
def created_by(cls): # pylint: disable=empty-docstring,no-self-argument
""" """
return orm.relationship(
User,
@ -241,7 +241,7 @@ class BatchMixin:
executed_by_uuid = sa.Column(UUID(), nullable=True)
@declared_attr
def executed_by(cls): # pylint: disable=empty-docstring
def executed_by(cls): # pylint: disable=empty-docstring,no-self-argument
""" """
return orm.relationship(
User,
@ -381,7 +381,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods
uuid = uuid_column()
@declared_attr
def __table_args__(cls):
def __table_args__(cls): # pylint: disable=no-self-argument
return cls.__default_table_args__()
@classmethod
@ -398,7 +398,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods
batch_uuid = sa.Column(UUID(), nullable=False)
@declared_attr
def batch(cls): # pylint: disable=empty-docstring
def batch(cls): # pylint: disable=empty-docstring,no-self-argument
""" """
batch_class = cls.__batch_class__
row_class = cls