pylint #73978 Extension for generated-members to avoid E1101 false pozitives [open]


I use SQLAlchemy and pylint complains that most of the members of those classes don't exist. To add all the members in generated-members doesn't make sense in my case, as most of my models have one to many and many to may relationships, and reporting that, for example, group doesn't exist or groups doesn't exists may be correctly reported as a bug, depending on the model.

That's why I extended pylint a bit, adding a generated-members-with-parent options.
My usage, for example: generated-members-with-parent='"User.(groups|id)","Group.(id|users)","Permission.(group|user)"'

The patch is attached.

Best regards,
Andrei Chirila
appeared in<not specified>
done in<not specified>
closed by<not specified>