DummyLock provides the lock API without any actual locking.
| 240 | |
| 241 | |
| 242 | class DummyLock(Lock): |
| 243 | """DummyLock provides the lock API without any actual locking.""" |
| 244 | |
| 245 | def acquire(self, blocking=True): |
| 246 | pass |
| 247 | |
| 248 | def release(self): |
| 249 | pass |
| 250 | |
| 251 | def __enter__(self): |
| 252 | pass |
| 253 | |
| 254 | def __exit__(self, *args): |
| 255 | pass |
| 256 | |
| 257 | def locked(self): |
| 258 | return False |
| 259 | |
| 260 | |
| 261 | def combine_locks(locks: Sequence[Lock]) -> Lock: |
no outgoing calls
no test coverage detected
searching dependent graphs…