Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Aug 25, 2024
1 parent a24f766 commit 94ef2bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gha_utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import sys
from datetime import datetime
from pathlib import Path
from typing import IO

from click_extra import (
Choice,
Expand Down Expand Up @@ -48,7 +49,7 @@ def is_stdout(filepath: Path) -> bool:
return str(filepath) == "-"


def prep_path(filepath: Path) -> Path | None:
def prep_path(filepath: Path) -> IO | None:
"""Prepare the output file parameter for Click's echo function."""
if is_stdout(filepath):
return None
Expand Down

0 comments on commit 94ef2bf

Please sign in to comment.