Skip to content

Duplicate code in Version.bump_build #463

Description

@viccie30

Which version of Python is the problem with?

3.13, 3.12, 3.11, 3.10, 3.9, 3.8, 3.7, 3.14

What semver version are you using?

3.0.4

What OS are you using? (Add more in the Environment section)

Linux, Windows

Situation

These lines duplicate the lines above and below.

# self._build or (token or "build") + ".0"
build = cls._increment_string(build)
if self._build is not None:
build = self._build
elif token == "":
build = "0"
elif token is None:
build = "build.0"
else:
build = str(token) + ".0"

How to reproduce

N/A

Expected behavior

N/A

Environment

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

SIze

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions