Commit eff1b48
committed
fix: use WorkerPool.shutdown() in _reset_pool to avoid union-attr mypy error
_reset_pool accessed _pool._pool.shutdown() directly but mypy can't
narrow the inner ProcessPoolExecutor | None to non-None. Replaced with
a call to the public shutdown() method which already handles the check.1 parent 5a160a1 commit eff1b48
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 303 | + | |
307 | 304 | | |
0 commit comments