Skip to content

Commit 9354bb7

Browse files
committed
use collections.abc.Mapping
1 parent c59a1f8 commit 9354bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bioimageio/core/prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def predict_many(
161161
f"Missing `{{member_id}}` in save_output_path={save_output_path}"
162162
)
163163

164-
if not isinstance(inputs, collections.Mapping) and "{sample_id}" not in str(
164+
if not isinstance(inputs, collections.abc.Mapping) and "{sample_id}" not in str(
165165
save_output_path
166166
):
167167
raise ValueError(
@@ -179,7 +179,7 @@ def predict_many(
179179

180180
pp = create_prediction_pipeline(model)
181181

182-
if not isinstance(inputs, collections.Mapping):
182+
if not isinstance(inputs, collections.abc.Mapping):
183183
sample_id = str(sample_id)
184184
if "{i}" not in sample_id and "{i:" not in sample_id:
185185
sample_id += "{i:03}"

0 commit comments

Comments
 (0)