(name: str, lock_path: str)
| 170 | |
| 171 | |
| 172 | def _build(name: str, lock_path: str) -> FileLock | SoftFileLock | StrictSoftFileLock: |
| 173 | if name == "FileLock": |
| 174 | return FileLock(lock_path) |
| 175 | if name == "SoftFileLock": |
| 176 | return SoftFileLock(lock_path) |
| 177 | return StrictSoftFileLock(lock_path) |
| 178 | |
| 179 | |
| 180 | if __name__ == "__main__": |
no test coverage detected