Skip to content

Clarify error message when no target Python version is specified#5006

Open
srinithivijayakumars139-wq wants to merge 1 commit intopsf:mainfrom
srinithivijayakumars139-wq:improve-target-version-error
Open

Clarify error message when no target Python version is specified#5006
srinithivijayakumars139-wq wants to merge 1 commit intopsf:mainfrom
srinithivijayakumars139-wq:improve-target-version-error

Conversation

@srinithivijayakumars139-wq

Description

This PR improves the clarity of the error message raised when no target Python versions are specified.
Previously, the message referenced the internal variable name:
target_versions must not be empty
The updated message is more user-facing and clearer:
At least one target Python version must be specified.
This change improves readability without modifying behaviour.

Checklist - did you ...

  • Implement any code style changes under the --preview style, following the stability policy?
  • Add an entry in CHANGES.md if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

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.

1 participant