Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance of 'Column' has no 'in_' member (no-member) #4

Open
torotil opened this issue Oct 1, 2021 · 5 comments
Open

Instance of 'Column' has no 'in_' member (no-member) #4

torotil opened this issue Oct 1, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@torotil
Copy link

torotil commented Oct 1, 2021

It seems that operators on ORM columns are not mapped properly for sqlalchemy 1.3 …

Test case:

"""Minimal test-case to reproduce a pylint-flask-sqlalchemy issue."""
# pylint: disable=too-few-public-methods

from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()


class User(db.Model):
    """Minimal model class."""

    id = db.Column(db.Integer(), primary_key=True)


User.query.filter(User.id.in_([1, 2, 3])).all()

Gives tihs output:

$ pylint minimal-pylint.py 
************* Module minimal-pylint
minimal-pylint.py:15:18: E1101: Instance of 'Column' has no 'in_' member (no-member)

-------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: -4.00/10, +4.00)
@herrboyer herrboyer added the bug Something isn't working label Oct 12, 2021
@herrboyer
Copy link
Contributor

Thank you for the detailed error report, we are looking into how to fix the problem.

@irl
Copy link

irl commented Jun 15, 2022

Also Column.is_ is missing.

E1101: Instance of 'Column' has no 'is_' member (no-member)

(Tested with latest master commit today)

@jlelong
Copy link

jlelong commented Jun 15, 2022

Same issue with Column.asc.

@ScholliYT
Copy link

Also an issue with Column.ilike.

@tweirtx
Copy link

tweirtx commented Sep 23, 2022

Any ETA on the fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants