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

More structured link evaluation result #10956

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

uranusjr
Copy link
Member

Follow-up refactoring to #9708.

A new enum class is implemented for the link evaluator to use instead of a simple boolean to better distinguish between various evaluation errors. This allows the caller to better distinguish error sources with a structured check instead of fragile error string comparison.

@uranusjr uranusjr added the skip news Does not need a NEWS file entry (eg: trivial changes) label Mar 10, 2022
A new enum class is implemented for the link evaluator to use instead
of a simple boolean to better distinguish between various evaluation
errors. This allows the caller to better distinguish error sources with
a structured check instead of fragile error string comparison.
@uranusjr uranusjr force-pushed the evaluate-link-error-refactor branch from 407983f to d61b539 Compare March 10, 2022 12:42
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

Nice!

@pradyunsg pradyunsg merged commit 4cf5023 into pypa:main Mar 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants