Skip to content

Commit be46018

Browse files
fixed wrong type annotation
DCO Remediation Commit for Lukas Folle <[email protected]> I, Lukas Folle <[email protected]>, hereby add my Signed-off-by to this commit: e0cda55 Signed-off-by: Lukas Folle <[email protected]>
1 parent 7df8cb9 commit be46018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/transforms/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def apply_transform(
143143
try:
144144
map_items_ = int(map_items) if isinstance(map_items, bool) else map_items
145145
if isinstance(data, (list, tuple)) and map_items_ > 0:
146-
res: list[ReturnType] = []
146+
res: list[Any] = []
147147
for item in data:
148148
res_item = apply_transform(transform, item, map_items_ - 1, unpack_items, log_stats, lazy, overrides)
149149
# Only extend if we're at the leaf level (map_items_ == 1) and the transform

0 commit comments

Comments
 (0)