We've been bit multiple times that pylint did not catch a simple unresolved attribute reference error.
I looked at pylint code but could not immediately find it. IDE like PyCharm can detect it, so it must be possible to detect it in pylint. We are using pylint as a CI job and want to be able to detect this before we merge code.
What pylint settings do I need to enable to catch an error like below?
class A():
df test_a(self):
print("A")
a = A()
a.test_b() # this should be caught by pylint.
What version of pylint are you using ? Both pylint 2.8.2 and mypy 0.812 detect this problem.
With
b.py
:pylint b.py
:mypy b.py
: