Commit 193de10
fix: Guard ReentrantLock against None task context (#841)
Add a runtime guard in `ReentrantLock` to raise `RuntimeError` when
`asyncio.current_task()` returns `None`, preventing the lock from being
silently bypassed due to `None is None` evaluating to `True`.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5e4f773 commit 193de10
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments