Skip to content

Commit

Permalink
Still support Python 3.9
Browse files Browse the repository at this point in the history
The or pipe operator was only introduced in Python 3.10.
  • Loading branch information
bjoernricks committed Jul 3, 2023
1 parent 888ef5f commit 16f726f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pontos/release/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

@dataclass
class ReleaseInformation:
last_release_version: Version | None
last_release_version: Optional[Version]
release_version: Version
git_release_tag: str
next_version: Version
Expand Down Expand Up @@ -129,7 +129,7 @@ def _has_tag(self, git_version: str) -> bool:
def _create_changelog(
self,
release_version: Version,
last_release_version: Version | None,
last_release_version: Optional[Version],
cc_config: Path,
) -> str:
changelog_builder = ChangelogBuilder(
Expand Down

0 comments on commit 16f726f

Please sign in to comment.