Commit 440e44b
committed
Fix a type error by using Concatenate
The intention is to pass *worker_args and **worker_kwargs
to the worker_fn function.
We need to explicity tell the type checker that worker_fn is
expected to accept the arguments from P in addition to the
standard item of type T. We use typing.Concatenate.1 parent c40f51e commit 440e44b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
0 commit comments