Skip to content

Commit

Permalink
Fix type hints
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Arellano <[email protected]>
  • Loading branch information
frankharkins and Eric-Arellano committed Jul 13, 2024
1 parent d7d2d93 commit 44fff28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/pr_previews/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import subprocess
from contextlib import contextmanager
from pathlib import Path
from typing import Iterator


logger = logging.getLogger(__name__)
Expand All @@ -36,7 +37,7 @@ def setup_git_account() -> None:
)


def changed_files() -> None:
def changed_files() -> str:
return run_subprocess(["git", "status", "--porcelain"]).stdout.strip()


Expand All @@ -47,7 +48,7 @@ def commit_all_and_push(commit_message: str) -> None:


@contextmanager
def switch_branch(branchname: str) -> None:
def switch_branch(branchname: str) -> Iterator[None]:
run_subprocess(["git", "fetch", "origin", branchname])
run_subprocess(["git", "switch", branchname])
yield
Expand Down

0 comments on commit 44fff28

Please sign in to comment.