Skip to content

Commit 0113cb6

Browse files
committed
fix(base): cast paths to tuple in read_files to prevent Pydantic generator exhaustion
1 parent 52a3438 commit 0113cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def read_files(
233233
paths: Iterable[str],
234234
on_error: Literal["raise", "omit", "return"] = "return",
235235
) -> Mapping[str, Union[bytes, Exception]]:
236-
# Pydantic validate_call with strict=True converts Iterable into a
236+
# Pydantic validate_call with strict=True converts Iterable into a
237237
# generator, which can be exhausted. Convert to a tuple first.
238238
paths = tuple(paths)
239239

0 commit comments

Comments
 (0)