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

Avoid showing dev hints for Python requirements #4111

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

charliermarsh
Copy link
Member

Closes #4096.

@charliermarsh charliermarsh added bug Something isn't working error messages Messaging when something goes wrong labels Jun 6, 2024
version: version.clone(),
});
if let PubGrubPackageInner::Package { name, .. } = &**package {
// Check for no versions due to pre-release options
Copy link
Member Author

Choose a reason for hiding this comment

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

The whole body is now just indented under if let PubGrubPackageInner::Package { name, .. } = &**package. Unfortunately we can't do this in the match itself because of the inner struct.

return false;
};
selector.prerelease_strategy().allows(name)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Not really necessary anymore, we just inline selector.prerelease_strategy().allows(name) because we have the name already.

@charliermarsh charliermarsh enabled auto-merge (squash) June 6, 2024 19:51
@charliermarsh charliermarsh merged commit 677a7f1 into main Jun 6, 2024
46 checks passed
@charliermarsh charliermarsh deleted the charlie/dev-hint branch June 6, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dev Pythons should not trigger pre-release hint
1 participant