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

Add support of mongoengine module. #65

Merged
merged 1 commit into from
May 21, 2016
Merged

Conversation

goldan
Copy link

@goldan goldan commented Feb 22, 2016

Prevent 'no-member' errors for Document._meta, objects, id/pk, save and errors.

Prevent 'no-member' errors for Document._meta, objects, id/pk, save and errors.
@anentropic
Copy link

thanks for this, it's exactly what I needed!

mongoengine is not specific to Django though, this belongs in its own plugin rather than here IMHO

@anentropic
Copy link

suggested change: objects = type (instead of None)

code like this is valid in mongoengine:
uk_users = User.objects(country='uk')

without the change above pylint complains that "objects is not callable"

@nedbat
Copy link

nedbat commented Mar 25, 2016

Agreed that this good thing doesn't belong in a Django plugin.

@goldan
Copy link
Author

goldan commented Mar 25, 2016

Agreed, though I don't feel like creating a new plugin for 15 lines of code... that's why I posted it here.

@carlio carlio merged commit 931fc5f into pylint-dev:master May 21, 2016
@carlio
Copy link
Collaborator

carlio commented May 21, 2016

Awesome stuff! Sorry for delay!

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

Successfully merging this pull request may close these issues.

4 participants