From 573e5bbf3b36a04152a9a798a619ac86939ab014 Mon Sep 17 00:00:00 2001 From: Mark Keller <8452750+keller00@users.noreply.github.com> Date: Mon, 28 Aug 2023 07:07:42 -0700 Subject: [PATCH] lock_file type-hint (#267) --- src/filelock/_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filelock/_api.py b/src/filelock/_api.py index fd1445b..8a40ccd 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -78,7 +78,7 @@ class BaseFileLock(ABC, contextlib.ContextDecorator): def __init__( self, - lock_file: str | os.PathLike[Any], + lock_file: str | os.PathLike[str], timeout: float = -1, mode: int = 0o644, thread_local: bool = True, # noqa: FBT001, FBT002