:returns: a flag indicating if this lock is thread local or not
(self)
| 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: |