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

Class LockOptions

src/filelock/_api.py:84–98  ·  view source on GitHub ↗

Every option the metaclass forwards, so a subclass adding its own can still type what it passes through.

Source from the content-addressed store, hash-verified

82
83
84class LockOptions(TypedDict, total=False):
85 """Every option the metaclass forwards, so a subclass adding its own can still type what it passes through."""
86
87 timeout: float
88 mode: int
89 thread_local: bool
90 blocking: bool
91 is_singleton: bool
92 poll_interval: float
93 lifetime: float | None
94 context_error_policy: ContextErrorPolicy
95 close_error_policy: CloseErrorPolicy
96 fallback_to_soft: bool
97 preserve_lock_file: bool
98 on_acquired: Callable[[int], None] | None
99
100
101def _exception_group_cls() -> type[BaseException]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected