Closed ghsanti closed 1 month ago
Thanks. Yeah, that makes sense. We're working on type inference that will improve the precision of panda's rules.
For now, I recommend you to disable the rule by using ruff.lint.ignore = ["PD011"])
.
I merge this issue into https://github.com/astral-sh/ruff/issues/6432 which discusses the problem holistically for all pandas rules.
a
is aclass
that happens to havevalues
property.Maybe as a first fix it can check for the
pandas
module, I'm not using it, just as in the snippet above.