fix: fix 'no-self-argument' for pylint
This commit is contained in:
parent
f01f5911da
commit
da149e932d
2 changed files with 7 additions and 6 deletions
|
@ -21,6 +21,7 @@ enable=anomalous-backslash-in-string,
|
||||||
missing-function-docstring,
|
missing-function-docstring,
|
||||||
missing-module-docstring,
|
missing-module-docstring,
|
||||||
no-else-return,
|
no-else-return,
|
||||||
|
no-self-argument,
|
||||||
redefined-argument-from-local,
|
redefined-argument-from-local,
|
||||||
too-few-public-methods,
|
too-few-public-methods,
|
||||||
trailing-whitespace,
|
trailing-whitespace,
|
||||||
|
|
|
@ -186,7 +186,7 @@ class BatchMixin:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def __table_args__(cls):
|
def __table_args__(cls): # pylint: disable=no-self-argument
|
||||||
return cls.__default_table_args__()
|
return cls.__default_table_args__()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -201,7 +201,7 @@ class BatchMixin:
|
||||||
)
|
)
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def batch_type(cls): # pylint: disable=empty-docstring
|
def batch_type(cls): # pylint: disable=empty-docstring,no-self-argument
|
||||||
""" """
|
""" """
|
||||||
return cls.__tablename__
|
return cls.__tablename__
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ class BatchMixin:
|
||||||
created_by_uuid = sa.Column(UUID(), nullable=False)
|
created_by_uuid = sa.Column(UUID(), nullable=False)
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def created_by(cls): # pylint: disable=empty-docstring
|
def created_by(cls): # pylint: disable=empty-docstring,no-self-argument
|
||||||
""" """
|
""" """
|
||||||
return orm.relationship(
|
return orm.relationship(
|
||||||
User,
|
User,
|
||||||
|
@ -241,7 +241,7 @@ class BatchMixin:
|
||||||
executed_by_uuid = sa.Column(UUID(), nullable=True)
|
executed_by_uuid = sa.Column(UUID(), nullable=True)
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def executed_by(cls): # pylint: disable=empty-docstring
|
def executed_by(cls): # pylint: disable=empty-docstring,no-self-argument
|
||||||
""" """
|
""" """
|
||||||
return orm.relationship(
|
return orm.relationship(
|
||||||
User,
|
User,
|
||||||
|
@ -381,7 +381,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods
|
||||||
uuid = uuid_column()
|
uuid = uuid_column()
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def __table_args__(cls):
|
def __table_args__(cls): # pylint: disable=no-self-argument
|
||||||
return cls.__default_table_args__()
|
return cls.__default_table_args__()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -398,7 +398,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods
|
||||||
batch_uuid = sa.Column(UUID(), nullable=False)
|
batch_uuid = sa.Column(UUID(), nullable=False)
|
||||||
|
|
||||||
@declared_attr
|
@declared_attr
|
||||||
def batch(cls): # pylint: disable=empty-docstring
|
def batch(cls): # pylint: disable=empty-docstring,no-self-argument
|
||||||
""" """
|
""" """
|
||||||
batch_class = cls.__batch_class__
|
batch_class = cls.__batch_class__
|
||||||
row_class = cls
|
row_class = cls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue