Skip to content

docs(ranges): add .. versionadded:: 26.3 to the public VersionRange class#1303

Merged
notatallshaw merged 1 commit into
pypa:mainfrom
r266-tech:docs-ranges-versionadded-263
Jun 28, 2026
Merged

docs(ranges): add .. versionadded:: 26.3 to the public VersionRange class#1303
notatallshaw merged 1 commit into
pypa:mainfrom
r266-tech:docs-ranges-versionadded-263

Conversation

@r266-tech

Copy link
Copy Markdown
Contributor

The public VersionRange class (the whole src/packaging/ranges.py module, shipped in #1267 and extended in #1298) carries no version directive, while the method that produces it — SpecifierSet.to_range() — already declares .. versionadded:: 26.3 (specifiers.py:1129). The other recently-added public classes carry a class-level directive as well: Version has .. versionadded:: 26.0 and Marker has .. versionchanged:: 26.2.

This adds .. versionadded:: 26.3 to the VersionRange class docstring, placed as the last docstring element to match to_range/Version. docs/ranges.rst renders it through .. automodule:: packaging.ranges, so readers of the reference learn which release first ships the API.

Pure docs — no code change. No changelog entry, since the feature is already recorded under :pull:1267``.

@notatallshaw notatallshaw merged commit fb82782 into pypa:main Jun 28, 2026
69 checks passed
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.

2 participants