Skip to content

Commit e47110f

Browse files
committed
Fix path coercian in utilities.
1 parent 94ac0cd commit e47110f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/py/kaleido/_path_tools.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def _next_filename(path: Path | str, prefix: str, ext: str) -> str:
3131

3232

3333
def determine_path(
34-
path: Path | None,
34+
path: Path | str | None,
3535
fig: dict,
3636
ext: _fig_tools.FormatString,
3737
) -> Path:
38-
path = path or Path()
38+
path = Path(path) if path else Path()
3939

4040
if not path.suffix or path.is_dir(): # they gave us a directory
4141
if not path.is_dir():

0 commit comments

Comments
 (0)