Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Duplicate code in Version.bump_build #463

Closed
@viccie30

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions