Skip to content

Commit

Permalink
WIP: refactor tests for new LogPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Jun 13, 2024
1 parent 33024bb commit 7620ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duct/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def prefix(self) -> str:
return self._prefix # type: ignore

@classmethod
def create(cls, output_prefix: str, pid: int) -> LogPaths:
def create(cls, output_prefix: str, pid: None | int = None) -> LogPaths:
datetime_filesafe = datetime.now().strftime("%Y.%m.%dT%H.%M.%S")
formatted_prefix = output_prefix.format(
pid=pid, datetime_filesafe=datetime_filesafe
Expand Down

0 comments on commit 7620ae4

Please sign in to comment.