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

Add proper __repr__ and __str__ methods #126

Open
scardena opened this issue Nov 12, 2022 · 0 comments
Open

Add proper __repr__ and __str__ methods #126

scardena opened this issue Nov 12, 2022 · 0 comments

Comments

@scardena
Copy link
Collaborator

scardena commented Nov 12, 2022

As per the official python documentation, __repr__:

should look like a valid Python expression that could be used to recreate an object with the same value (given an appropriate environment). If this is not possible, a string of the form <...some useful description...> should be returned.

currently it's only returning the resource name.
We could have the str methods to return the names, but repr should be able to give a visual representation of the entire object

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

No branches or pull requests

1 participant