Well, for your future reference, Pylint (<a href="https:&#x2F;&#x2F;www.pylint.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pylint.org&#x2F;</a>) checks for that and many other common pitfalls. I&#x27;m sure its competitors PyChecker and Pyflakes do so as well.