Skip to content

Commit 9bd4085

Browse files
Bas Roostomschr
authored andcommitted
Apply other PR change requests
1 parent cfff984 commit 9bd4085

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy