-
Notifications
You must be signed in to change notification settings - Fork 18
False positives with common method names #81
Description
This is a dedicated issue for the big discussion in #74
The problem is that many of our checks rely on the type of the object being a pandas object. This is a fundamental issue with static linting in Python because the AST doesn't know what type a thing is. This leads to false positives for things like re.sub() or dict.values()
I am open to suggestions on how to get around this, but it will likely be a big job. Some kind of integration with mypy or some other way to leverage type annotations might be a way to fix this, at least for folks who use those type annotations. What exactly that looks like is unclear to me, so please let me know if you have any ideas.
For now, the undesirable workaround is to turn off checks that are particularly bothersome.