Skip to content

Commit

Permalink
Support older Python in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurrump committed Oct 6, 2022
1 parent b144f8b commit a7c6f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from typing import Iterator, List
from typing import Iterator, List, Optional

from datetime import date
import os
import re

CHANGELOG_FILE = "CHANGELOG.md"
Expand All @@ -14,7 +14,7 @@ def read_changelog() -> List[str]:
with open(CHANGELOG_FILE, "r", encoding = "utf-8") as f:
return f.readlines()

def get_current_version(changelog: List[str]) -> str | None:
def get_current_version(changelog: List[str]) -> Optional[str]:
for line in changelog:
match = VERSION_HEADER_PATTERN.match(line)
if match:
Expand Down

0 comments on commit a7c6f51

Please sign in to comment.