MCPcopy Index your code
hub / github.com/python/cpython / expand_version_arg

Function expand_version_arg

Doc/tools/extensions/changes.py:20–24  ·  view source on GitHub ↗

Expand "next" to the current version

(argument: str, release: str)

Source from the content-addressed store, hash-verified

18
19
20def expand_version_arg(argument: str, release: str) -> str:
21 """Expand "next" to the current version"""
22 if argument == "next":
23 return sphinx_gettext("{} (unreleased)").format(release)
24 return argument
25
26
27class PyVersionChange(VersionChange):

Callers 2

runMethod · 0.85
runMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…