Skip to content

Commit 55c724f

Browse files
Use [] and {} instead of list() and dict() (#8748)
### Description See also #8747 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com> Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent af361cc commit 55c724f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/transforms/inverse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ def track_transform_meta(
282282
msg += f" for key {key}"
283283

284284
pend = out_obj.pending_operations[-1]
285-
statuses = pend.get(TraceKeys.STATUSES, dict())
286-
messages = statuses.get(TraceStatusKeys.PENDING_DURING_APPLY, list())
285+
statuses = pend.get(TraceKeys.STATUSES, {})
286+
messages = statuses.get(TraceStatusKeys.PENDING_DURING_APPLY, [])
287287
messages.append(msg)
288288
statuses[TraceStatusKeys.PENDING_DURING_APPLY] = messages
289289
info[TraceKeys.STATUSES] = statuses

0 commit comments

Comments
 (0)