Skip to content

Commit

Permalink
style: fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tzoiker committed Nov 3, 2023
1 parent 12daf47 commit f8aa792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poem_plugins/general/version/drivers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ def _get_version_pep_440(self, raw_version: str) -> Version:
release[-1] += commit_count
else:
segments[bump_segment.value] = segments[bump_segment.value] or 0
segments[bump_segment.value] += commit_count
segments[bump_segment.value] += commit_count # type: ignore

segments["release"] = tuple(release)

if self.settings.format == GitVersionFormatEnum.SHORT:
segments["commit"] = None

return Version(**segments)
return Version(**segments) # type: ignore

def _git_describe(self) -> str:
if GIT_BIN is None:
Expand Down

0 comments on commit f8aa792

Please sign in to comment.