( # 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,
)
| 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 | |
| 209 | def delegate_to_current(name: str) -> property: |
nothing calls this directly
no test coverage detected