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 authored Jul 13, 2024
1 parent d7d2d93 commit d0b941f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/pr_previews/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import logging
import shutil
from pathlib import Path
from typing import Iterator

logger = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions scripts/pr_previews/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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 +47,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 d0b941f

Please sign in to comment.