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

Method lifetime

src/filelock/_api.py:333–340  ·  view source on GitHub ↗

The lock lifetime in seconds, or ``None`` if the lock never expires. .. versionadded:: 3.24.0

(self)

Source from the content-addressed store, hash-verified

331
332 @property
333 def lifetime(self) -> float | None:
334 """
335 The lock lifetime in seconds, or ``None`` if the lock never expires.
336
337 .. versionadded:: 3.24.0
338
339 """
340 return self._context.lifetime
341
342 @lifetime.setter
343 def lifetime(self, value: float | None) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected