object.__setattr__
triggering PLC2801 outside of dunder methods
#11636
Labels
rule
Implementing or modifying a lint rule
Related to false positive on PLC2801 "unnecessary dunder... for setattr" #9584
object.__setattr__
is the recommended way to set attributes on frozen dataclasses. This was addressed in #9584 but PLC2801 is triggering whenobject.__setattr__
is in non-dunder methods.See - https://play.ruff.rs/1a9602da-78ce-44c9-bbfe-b17b147da04b
ruff v0.4.6
The text was updated successfully, but these errors were encountered: