Repository navigation
feat: extend version_variables to replace vars with annotations #1443
Copy link
Copy link
Closed
Labels
Description
Activity
- addedbugSomething isn't working properlySomething isn't working properlytriagewaiting for initial maintainer reviewwaiting for initial maintainer review
on Apr 22, 2026 - addedconfirmedPrevent from becoming stalePrevent from becoming stalefeatureA new feature or a feature requestA new feature or a feature requestand removedtriagewaiting for initial maintainer reviewwaiting for initial maintainer reviewbugSomething isn't working properlySomething isn't working properly
on Apr 22, 2026 Changing to a feature request as version with a type annotation behavior was not a considered use (not documented example or tested by maintainers).
- changed the title
[-]version_variables configuration fails to update Python variables with type hints[/-][+]feat: extend `version_variables` to replace vars with annotations[/+]on Apr 23, 2026 It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Jul 22, 2026 - added a commit that references this issue
on Aug 29, 2026 🎉 This issue has been resolved in v10.7.0 🎉
You can find more information about this release on the GitHub Releases page.
If your issue persists, please reply here and we will re-open the issue. If you receive a new error, please open a new issue and reference this issue there.
- added and removedconfirmedPrevent from becoming stalePrevent from becoming staleneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Sep 22, 2026
Description
Python-semantic-release does not detect and update version variables in Python files when they include type annotations (type hints).
Version
Desired workflow
version_variablesinpyproject.toml:semantic-release versionDesired behavior
The
__version__variable should be updated to the new version (e.g.,"1.7.0")Current behavior
The
__version__variable is NOT updated. Onlyversion_tomlentries are updated.Workaround
Remove the type hint from the version variable: