10000 Apply other PR change requests · python-semver/python-semver@5cc12cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cc12cb

Browse files
author
Bas Roos
committed
Apply other PR change requests
1 parent d2b319a commit 5cc12cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/semver/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ def _increment_prerelease(string: str) -> str:
255255
256256
:param string: the prerelease version to increment
257257
:return: the incremented string
258-
259258
"""
260259
match = Version._LAST_PRERELEASE.search(string)
261260
if match:
@@ -353,6 +352,8 @@ def bump_prerelease(
353352
'1'
354353
>>> ver.bump_prerelease(None).prerelease
355354
'rc.1'
355+
>>> str(ver.bump_prerelease(bump_when_empty=True))
356+
'3.4.6-rc.1'
356357
"""
357358
cls = type(self)
358359
patch = self._patch

0 commit comments

Comments
 (0)
0