Skip to content

Commit

Permalink
chore(py): Tighten read_brand_yml() dict return type
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 21, 2024
1 parent 99591cc commit 04ff25c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg-py/src/brand_yml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,14 @@ def read_brand_yml(


@overload
def read_brand_yml(path: str | Path, as_data: Literal[True]) -> dict: ...
def read_brand_yml(
path: str | Path, as_data: Literal[True]
) -> dict[str, Any]: ...


def read_brand_yml(path: str | Path, as_data: bool = False) -> Brand | dict:
def read_brand_yml(
path: str | Path, as_data: bool = False
) -> Brand | dict[str, Any]:
"""
Read a Brand YAML file.
Expand Down

0 comments on commit 04ff25c

Please sign in to comment.