From 7620ae476b14d75943bf3f08cc3505358353e22a Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Thu, 13 Jun 2024 17:12:22 -0500 Subject: [PATCH] WIP: refactor tests for new LogPaths --- src/duct/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duct/__main__.py b/src/duct/__main__.py index 48b355eb..a910c07d 100644 --- a/src/duct/__main__.py +++ b/src/duct/__main__.py @@ -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