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 Display for Version #39

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Improve Display for Version #39

merged 2 commits into from
Mar 29, 2024

Conversation

jbearer
Copy link
Member

@jbearer jbearer commented Mar 29, 2024

The previous implementation simply printed the struct's docstring, which is not very useful. The new implementation prints a specific version in {major}.{minor} format, which makes for better error messages when deserialization fails due to version mismatch.

The previous implementation simply printed the struct's docstring,
which is not very useful. The new implementation prints a specific
version in {major}.{minor} format, which makes for better error
messages when deserialization fails due to version mismatch.
@jbearer jbearer requested a review from nyospe March 29, 2024 17:08
Copy link
Contributor

@nyospe nyospe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to do the same for the StaticVersion, but not a priority...

@jbearer jbearer merged commit 50c93e6 into main Mar 29, 2024
8 checks passed
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.

2 participants