PyLint's useless-suppression is not producing consistent behaviour with mock.patch.multiple_targets
#8977
Labels
Needs reproduction 🔍
Need a way to reproduce it locally on a maintainer's machine
Bug description
So, in my tests, I have something like this
If I run pylint with the suppression enabled, sometimes, it tells me that this disable is useless. So, I tried to remove it, but then I always get the error that
multiple_targets
is not a memberThe weirdest thing is that the useless suppression warning doesn't always happen or happens for different files
Configuration
Command used
Pylint output
Expected behavior
PyLint is consistent
Pylint version
OS / Environment
Mac OS Monterey, Apple M1
The text was updated successfully, but these errors were encountered: