Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve __repr__ of collection types #392

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Improve __repr__ of collection types #392

merged 2 commits into from
Feb 6, 2024

Conversation

greschd
Copy link
Member

@greschd greschd commented Feb 6, 2024

Improve the string representation of the collection types in the following ways:

  • LinkedObjectList: add a custom __repr__ which shows the linked objects
  • MutableMapping add a custom __repr__ which shows the value type,
    and mapping keys
  • EdgePropertyList: adapt the style to match the tree objects and other collections

Closes #391

Add prettier representation of LinkedObjectList by adding a custom
`__repr__` which shows the linked objects.

Adapt `EdgePropertyList.__repr__` to use the same general style as
the tree object / mapping / linked object list.
@greschd greschd merged commit ace8720 into main Feb 6, 2024
11 checks passed
@greschd greschd deleted the feat/list_string_repr branch February 6, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve list string representation
2 participants