anybox / pylint_flask_sqlalchemy

pylint_flask_sqlalchemy is a Pylint plugin to improve static code analysis of Flask-SQLAlchemy based projects.
MIT License
8 stars 5 forks source link

Method should have 'self' as first argument #7

Open tgross35 opened 2 years ago

tgross35 commented 2 years ago

This comes from SQLA's declared_attr decorator

@declared_attr
def time_updated(cls):
    return Column(DateTime(255), onupdate=func.now())

Results in:

{
    "owner": "python",
    "code": "no-self-argument",
    "severity": 8,
    "message": "Method should have \"self\" as first argument",
    "source": "pylint"
}