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
If __attrs_pre_init__ takes more than the self argument, the attrs-generated __init__ will call it with the same arguments it received itself.
However, if those attributes are specified with default values (and not specified as keyword only), then their default value is passed into __attrs_pre_init__ even when a user has given them init values:
The documentation says:
However, if those attributes are specified with default values (and not specified as keyword only), then their default value is passed into
__attrs_pre_init__
even when a user has given them init values:If we inspect the generated init method:
We get:
When I would expect either:
Assuming this is a bug, this is probably a simple fix.
Attrs version:
25.3.0
The text was updated successfully, but these errors were encountered: