Skip to content

Commit

Permalink
chore: repr tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 28, 2023
1 parent 4d00ca3 commit 24ea6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mknodes/utils/reprhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self, some_value: int = 0):
# check for hidden attribute first, then for attribute named like kwarg
if f"_{k}" in instance.__dict__ and v != getattr(instance, f"_{k}"):
kwargs[k] = getattr(instance, f"_{k}")
if k in instance.__dict__ and v != getattr(instance, k):
elif k in instance.__dict__ and v != getattr(instance, k):
kwargs[k] = getattr(instance, k)
return get_repr(instance, *args, **kwargs, _char_width=char_width, _shorten=shorten)

Expand Down

0 comments on commit 24ea6aa

Please sign in to comment.