Commit de9f142
committed
fix(store): add None check for _task in AsyncRedisStore.__aexit__
Fixes type error where _task could be None but was being awaited without
proper type guard. Added explicit None check before calling .done() and
awaiting the task.
Resolves mypy error: Incompatible types in 'await' (actual type 'Task[Any] | None',
expected type 'Awaitable[Any]')1 parent 5a9f966 commit de9f142
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
0 commit comments