Skip to content

Commit ea29503

Browse files
encukoupull[bot]
authored andcommitted
gh-121277: Raise nice error on next as second argument to deprecated-removed (GH-124623)
1 parent 8a71900 commit ea29503

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/tools/extensions/pyspecific.py

+3
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ def run(self):
288288
version_deprecated = expand_version_arg(self.arguments[0],
289289
self.config.release)
290290
version_removed = self.arguments.pop(1)
291+
if version_removed == 'next':
292+
raise ValueError(
293+
'deprecated-removed:: second argument cannot be `next`')
291294
self.arguments[0] = version_deprecated, version_removed
292295

293296
# Set the label based on if we have reached the removal version

0 commit comments

Comments
 (0)