We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Foo(object): def __init__(self): self._exc = None def fail(self): self._exc = Exception("") def doit(self): if self._exc: exc = self._exc self._exc = None raise exc
************* Module test test.py:12:6: E0702: Raising NoneType while only classes or instances are allowed (raising-bad-type)
pylint should be smart enough not to warn about this.
pylint 2.3.1 astroid 2.2.3 Python 3.7.2 (default, Feb 13 2019, 15:31:10) [Clang 10.0.0 (clang-1000.11.45.5)]
The text was updated successfully, but these errors were encountered:
Thanks for the report!
Sorry, something went wrong.
raising-bad-type
jacobtylerwalls
Successfully merging a pull request may close this issue.
Steps to reproduce
Current behavior
Expected behavior
pylint should be smart enough not to warn about this.
pylint --version output
pylint 2.3.1
astroid 2.2.3
Python 3.7.2 (default, Feb 13 2019, 15:31:10)
[Clang 10.0.0 (clang-1000.11.45.5)]
The text was updated successfully, but these errors were encountered: