Skip to content

Commit

Permalink
Fix dictionary merging in SCMInfo
Browse files Browse the repository at this point in the history
Replaced the bitwise OR operator with the update method for merging dictionaries for 3.8 support
  • Loading branch information
coordt committed Aug 6, 2024
1 parent b91224e commit 5fb5ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumpversion/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def latest_tag_info(cls, tag_name: str, parse_pattern: str) -> SCMInfo:

commit_info = cls._commit_info(parse_pattern, tag_name)
rev_info = cls._revision_info()
info |= commit_info
info |= rev_info
info.update(commit_info)
info.update(rev_info)

return SCMInfo(**info)

Expand Down

0 comments on commit 5fb5ef2

Please sign in to comment.