Skip to content

Commit

Permalink
Update util
Browse files Browse the repository at this point in the history
  • Loading branch information
curegit committed Jun 10, 2024
1 parent c32ccef commit abca46a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion descreen/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import functools
import operator as op
from typing import Any
from collections.abc import Iterable, Callable


Expand All @@ -22,7 +23,7 @@ def wrapper(*args, **kwargs) -> T:
return wrapper


def prod(xs, start=1):
def prod(xs: Iterable[Any], start: Any = 1) -> Any:
return functools.reduce(op.mul, xs, start)


Expand Down
2 changes: 1 addition & 1 deletion descreen/utilities/filesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def mkdirp(path: str | Path, recreate: bool = False) -> None:
os.makedirs(path, exist_ok=True)


def resolve_path(path: str | Path, strict=False) -> Path:
def resolve_path(path: str | Path, *, strict=False) -> Path:
return Path(path).resolve(strict=strict)


Expand Down

0 comments on commit abca46a

Please sign in to comment.