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

qol: State.keys() should only display keys and not values. #409

Open
zilto opened this issue Oct 29, 2024 · 0 comments
Open

qol: State.keys() should only display keys and not values. #409

zilto opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@zilto
Copy link
Collaborator

zilto commented Oct 29, 2024

Currently, printing State.keys() displays the values too, which makes it hardly usable when the state contains large objects (JSON responses, dataframes, embedding vectors; see picture)

This should be a simple fix by modifying the State.__str__() method. Be mindful of the difference between __str__ and __repr__ (reference)

image

@zilto zilto added enhancement New feature or request good first issue Good for newcomers hacktoberfest labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant