Commit 4d4c7f6
authored
enh(engines/utils): use tuple/dict comprehensions in PrepareBatchExtraInput
Replace the imperative list-append and dict-update loops in
PrepareBatchExtraInput.__call__ with direct tuple generator and dict
comprehension expressions. Also add explicit type annotations for
args_ and kwargs_.
Suggested by @ericspod in Project-MONAI#8747. Closes Project-MONAI#8806.
Signed-off-by: Zeeshan Modi <92383127+Zeesejo@users.noreply.github.com>1 parent ea4b1c3 commit 4d4c7f6
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
| 234 | + | |
| 235 | + | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments