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

Method is_thread_local

src/filelock/_api.py:253–255  ·  view source on GitHub ↗

:returns: a flag indicating if this lock is thread local or not

(self)

Source from the content-addressed store, hash-verified

251 self._context: FileLockContext = (ThreadLocalFileContext if thread_local else FileLockContext)(**kwargs)
252
253 def is_thread_local(self) -> bool:
254 """:returns: a flag indicating if this lock is thread local or not"""
255 return self._is_thread_local
256
257 @property
258 def is_singleton(self) -> bool:

Callers 1

__call__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected