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 error messages #173

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Improve error messages #173

merged 2 commits into from
Apr 24, 2024

Conversation

ordabayevy
Copy link
Contributor

Resolves #95 . It is a better practice to raise ValueError instead of using assertions. Use assertion only in tests and for type narrowing.

@ordabayevy ordabayevy force-pushed the improve-error-messages branch from 65808aa to 993aac6 Compare April 23, 2024 16:08
Copy link
Contributor

@sjfleming sjfleming left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Member

@mbabadi mbabadi left a comment

Choose a reason for hiding this comment

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

Excellent!

@ordabayevy ordabayevy merged commit 40648d9 into main Apr 24, 2024
5 checks passed
@ordabayevy ordabayevy deleted the improve-error-messages branch April 24, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error messages
3 participants