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

no-member messages for M2M filter and *_set attributes #237

Closed
talkingtoaj opened this issue Jun 21, 2019 · 0 comments
Closed

no-member messages for M2M filter and *_set attributes #237

talkingtoaj opened this issue Jun 21, 2019 · 0 comments

Comments

@talkingtoaj
Copy link

I erroneously receive the following pylint no-member error messages:

Instance of 'ManyToManyField' has no 'filter' memberpylint(no-member)

  • Seems to think filter methods don't work on ManyToMany fields

Instance of 'Tip' has no 'tipencounter_set' memberpylint(no-member)

  • Seems unable to determine that the other end of a One-to-Many relationship has a _set attribute.

My pipfile:

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true

[requires]
python_version = "3.6"

[packages]
django = ""
dj-database-url = "
"
gunicorn = "" # a pure-Python HTTP server for WSGI applications that allows multiple concurrent processing of we
requests = "
"
django-widget-tweaks = ""
"django-tinymce4-lite" = "
"
"django-bootstrap4" = ""
"psycopg2-binary" = "
"
django-contrib-comments = ""
selenium = "
"
"boto3" = ""
django-storages = "
"
"beautifulsoup4" = ""
mypy = "
"
django-redis = ""
django-cache-memoize = "
"
django-cachalot = "*"

[dev-packages]
pylint = ""
pylint-django = "
"
coverage = "*"

pchiquet referenced this issue in pchiquet/pylint-django Jun 25, 2019
"remove" and "set" methods were missing on RelatedManager
atodorov referenced this issue Jul 7, 2019
"remove" and "set" methods were missing on RelatedManager
@atodorov atodorov closed this as completed Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants