Skip to content

Commit

Permalink
feat: accept PathLike argument for directory path output location
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Jul 22, 2024
1 parent 39662cf commit 90b9d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/alpax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __exit__(


class DirectoryPackWriterAsync(PackWriterAsync[None]):
def __init__(self, output_dir: str, **k: Unpack[PackProperties]):
def __init__(self, output_dir: str | os.PathLike, **k: Unpack[PackProperties]):
super().__init__(**k)

self._output_dir = output_dir
Expand Down Expand Up @@ -359,6 +359,6 @@ def do_write_file(absolute_path: str, content: bytes) -> None:


class DirectoryPackWriter(PackWriter):
def __init__(self, output_dir: str, **k: Unpack[PackProperties]):
def __init__(self, output_dir: str | os.PathLike, **k: Unpack[PackProperties]):
pack_writer_async = DirectoryPackWriterAsync(output_dir, **k)
super().__init__(pack_writer_async)

0 comments on commit 90b9d02

Please sign in to comment.