From 9ef55aaf12a575b9deff6e275bc2dad60b8bc335 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Tue, 21 Nov 2023 13:27:05 -0700 Subject: [PATCH] Add missing strict parameter to zip --- python/lsst/daf/butler/datastores/chainedDatastore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/daf/butler/datastores/chainedDatastore.py b/python/lsst/daf/butler/datastores/chainedDatastore.py index 28986d7a23..fb19b52227 100644 --- a/python/lsst/daf/butler/datastores/chainedDatastore.py +++ b/python/lsst/daf/butler/datastores/chainedDatastore.py @@ -461,7 +461,7 @@ def put_new(self, inMemoryDataset: Any, ref: DatasetRef) -> Mapping[str, Dataset npermanent = 0 nephemeral = 0 stored_refs: dict[str, DatasetRef] = {} - for datastore, constraints in zip(self.datastores, self.datastoreConstraints): + for datastore, constraints in zip(self.datastores, self.datastoreConstraints, strict=True): if ( constraints is not None and not constraints.isAcceptable(ref) ) or not datastore.constraints.isAcceptable(ref):