Skip to content

Commit

Permalink
Update define to accept only_non_default_attr_in_repr param
Browse files Browse the repository at this point in the history
  • Loading branch information
RNKuhns committed Apr 11, 2024
1 parent 934a86d commit c8081ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/attr/_next_gen.py
Expand Up @@ -44,6 +44,7 @@ def define(
on_setattr=None,
field_transformer=None,
match_args=True,
only_non_default_attr_in_repr=False,
):
r"""
Define an *attrs* class.
Expand Down Expand Up @@ -110,6 +111,7 @@ def do_it(cls, auto_attribs):
on_setattr=on_setattr,
field_transformer=field_transformer,
match_args=match_args,
only_non_default_attr_in_repr=only_non_default_attr_in_repr,
)

def wrap(cls):
Expand Down

0 comments on commit c8081ec

Please sign in to comment.