Using the attrs package seems to cause errors with PyLint:
import attr
@attr.s(slots=True)
class Foo:
d = attr.ib(attr.Factory(dict), type=dict)
f = Foo()
print('bar' in f.d)
print(f.d.items())
PyLint complains with the following error messages (irrelevant removed):
E: 9,15: Value 'f.d' doesn't support membership test (unsupported-membership-test)
E: 10, 6: Instance of '_CountingAttr' has no 'items' member (no-member)
Is there a direct way how to make attrs sanely work with pylint?