Skip to content

Commit

Permalink
workflow: Ensure script runs on Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Oct 17, 2023
1 parent a8ec075 commit 3134ab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import tempfile
from datetime import datetime
from typing import Dict
from typing import Optional
from typing import TypedDict

IS_CI = "CI" in os.environ
Expand Down Expand Up @@ -248,7 +249,7 @@ def commit_and_tag(component: Component, version: str) -> str:
return tag


def run(*cmd, cwd: str | None = None, capture: bool = False) -> str | None:
def run(*cmd, cwd: Optional[str] = None, capture: bool = False) -> Optional[str]:
"""Run a command"""

result = subprocess.run(cmd, cwd=cwd, capture_output=capture)
Expand Down

0 comments on commit 3134ab6

Please sign in to comment.