We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e7c27 commit 52a3438Copy full SHA for 52a3438
1 file changed
malariagen_data/anoph/base.py
@@ -233,6 +233,10 @@ def read_files(
233
paths: Iterable[str],
234
on_error: Literal["raise", "omit", "return"] = "return",
235
) -> Mapping[str, Union[bytes, Exception]]:
236
+ # Pydantic validate_call with strict=True converts Iterable into a
237
+ # generator, which can be exhausted. Convert to a tuple first.
238
+ paths = tuple(paths)
239
+
240
# Check for any cached files.
241
files = {
242
path: data for path, data in self._cache_files.items() if path in paths
0 commit comments