attrs icon indicating copy to clipboard operation
attrs copied to clipboard

Pass kwargs to __attrs_pre_init__()

Open kevinphs opened this issue 4 weeks ago • 1 comments

This issue was closed but the args are passed in as positional arguments which isn't very helpful for my use case where there are a lot of fields and I only want to update one of them.

Can we also add support for passing in kwargs? Example:

def __attrs_pre_init__(self, **kwargs):
    ...
    super().__init__(**kwargs)
    ...

kevinphs avatar Jun 05 '24 21:06 kevinphs