MCPcopy Create free account
hub / github.com/tox-dev/filelock / __init__

Method __init__

src/filelock/_core/_state.py:189–206  ·  view source on GitHub ↗
(  # ruff:ignore[too-many-arguments]  # mirrors the FileLockContext fields set at construction
        self,
        *,
        lock_file: str,
        timeout: float,
        mode: int,
        blocking: bool,
        poll_interval: float,
        lifetime: float | None = None,
    )

Source from the content-addressed store, hash-verified

187
188 # threading.local runs __init__ again with these arguments the first time each thread touches the context.
189 def __init__( # ruff:ignore[too-many-arguments] # mirrors the FileLockContext fields set at construction
190 self,
191 *,
192 lock_file: str,
193 timeout: float,
194 mode: int,
195 blocking: bool,
196 poll_interval: float,
197 lifetime: float | None = None,
198 ) -> None:
199 self.current = FileLockContext(
200 lock_file=lock_file,
201 timeout=timeout,
202 mode=mode,
203 blocking=blocking,
204 poll_interval=poll_interval,
205 lifetime=lifetime,
206 )
207
208
209def delegate_to_current(name: str) -> property:

Callers

nothing calls this directly

Calls 1

FileLockContextClass · 0.85

Tested by

no test coverage detected