You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤦🏻 Okay, so that fixes the first one, but not the second. I guess it's up for debate if the second should be caught or not.
Updated top post
ashb
changed the title
ruff-mutable-default (RUF008) not working for attrs classes
ruff-mutable-default (RUF008) not not catching mutable default passed to attrs.field.
Mar 4, 2025
Thanks for updating the summary. Adding support for attrs.field (in preview) does make sense to me, considering that #14327 (comment) introduced attrs support.
Simple repro case
Originally posted by @ashb in #14327 (comment)
Output:
I was hoping it would catch the same error on
mutable_default2
The text was updated successfully, but these errors were encountered: