aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-05-22 13:30:40 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-05-22 13:30:40 +0300
commit87edd6f0182c0a6fa2ae222d377d636f1f991b81 (patch)
treef335933befb65a2643ef737c5d9f749bbe84123c
parenta825004a3a28f45445c4571ea79e90a1805ceab4 (diff)
Fix path type by adding str union
-rw-r--r--femtoqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/femtoqueue.py b/femtoqueue.py
index 6b24e56..4bdf8c4 100644
--- a/femtoqueue.py
+++ b/femtoqueue.py
@@ -23,7 +23,7 @@ class FemtoQueue:
def __init__(
self,
- data_dir: PathLike,
+ data_dir: PathLike | str,
node_id: str,
timeout_stale_ms: int = 30_000,
sync_after_write: bool = False,
@@ -33,7 +33,7 @@ class FemtoQueue:
Parameters
----------
- data_dir : os.PathLike
+ data_dir : os.PathLike or str
Directory where data files are persisted
node_id : str
Stable identifier for this instance