diff options
| author | Jan T <jan@jantuomi.fi> | 2025-05-22 10:20:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 10:20:30 +0000 |
| commit | cb6f01ba9f3e093d39a397275b778d5a08dbde8a (patch) | |
| tree | 71278a4b087ba86cab86e681c3723ea752599648 /femtoqueue.py | |
| parent | 43dd3843f36b58d61fcfb6ca5ccffdc46118fd9c (diff) | |
| parent | 0e7a34412b8836a14849c48b8e89c186c0e7c349 (diff) | |
Merge pull request #3 from jantuomi/pathlike
Improve typing
Diffstat (limited to 'femtoqueue.py')
| -rw-r--r-- | femtoqueue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/femtoqueue.py b/femtoqueue.py index 718e824..6b24e56 100644 --- a/femtoqueue.py +++ b/femtoqueue.py @@ -1,4 +1,4 @@ -from os import makedirs, path, listdir, rename, urandom, fsync +from os import makedirs, path, PathLike, listdir, rename, urandom, fsync from dataclasses import dataclass import time from typing import Generator @@ -23,7 +23,7 @@ class FemtoQueue: def __init__( self, - data_dir: str, + data_dir: PathLike, node_id: str, timeout_stale_ms: int = 30_000, sync_after_write: bool = False, @@ -33,7 +33,7 @@ class FemtoQueue: Parameters ---------- - data_dir : str + data_dir : os.PathLike Directory where data files are persisted node_id : str Stable identifier for this instance |
