Skip to content

PeeWee doesn't play nice with pylint (or vice-versa) #104

Closed
diwakergupta opened this Issue Aug 15, 2012 · 4 comments

2 participants

@diwakergupta

PeeWee modifies the model classes at RunTime. pylint doesn't like this and I get errors like:

E:123,15:Benchmark.add_run_data: Class 'RunData' has no 'DoesNotExist' member
@coleifer
Owner

Peewee uses metaclasses to give you "declarative" models. Your models and the fields you define as class attributes are valuable metadata and I cribbed the notion of using a metaclass to introspect these. It would be arguably more pythonic to do it differently, but this is the API I have chosen. You can see the details:

https://github.com/coleifer/peewee/blob/master/peewee.py#L2566

@coleifer coleifer closed this Aug 17, 2012
@diwakergupta
@coleifer
Owner

Ahh, totally -- I am not very familiar with pylint so I'm not sure what hooks it provides to say "i know what i'm doing here". If you come up with a patch I'd consider merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.