Skip to content

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

Merged
cobaltt7 merged 2 commits intopsf:mainfrom
srinithivijayakumars139-wq:improve-target-version-error
Mar 2, 2026
Merged

Clarify error message when no target Python version is specified#5006
cobaltt7 merged 2 commits intopsf:mainfrom
srinithivijayakumars139-wq:improve-target-version-error

Conversation

@srinithivijayakumars139-wq
Copy link
Copy Markdown
Contributor

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?

@cobaltt7 cobaltt7 added the ci: skip news Pull requests that don't need a changelog entry. label Mar 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 2, 2026

diff-shades results comparing this PR (e7cf828) to main (ff094ac):

--preview style: no changes

--stable style: no changes


What is this? | Workflow run | diff-shades documentation

@cobaltt7 cobaltt7 merged commit 13721d9 into psf:main Mar 2, 2026
56 checks passed
cobaltt7 added a commit that referenced this pull request Mar 2, 2026
Co-authored-by: cobalt <61329810+cobaltt7@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants