Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the
inconsistent-return-statements
warning of Pylint globally.
For pylint 2.7, this warning appears multiple times and is related to using the `augment_excmessage` function of module `objecttools`. Pylint does not understand that this function never returns. I opened issue pylint-dev/pylint#4122. Once accepted and implemented, we can reverse this commit. If the proposal is rejected, we have to decide whether we want to keep the global setting or write the corresponding comment to each individual corresponding function call. It seems like Pylint does not understand some of our descriptors (e.g. `_PubProperty`) well enough and thus raises false-positive `no-member´ warnings. This seems to be a know issue. If someone fixes pylint-dev/pylint#3684, we can revert this commit. Adding local disable-statements would be much effort. It seems better to wait and further improve our type hints in the meantime, so that Mypy can step in to catch potential `no-member` bugs.
- Loading branch information