Skip to content

Commit

Permalink
Enable access via [] when config is a DelayEvaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Dec 19, 2024
1 parent 275515d commit 02cb01a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metaflow/user_configs/config_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def __iter__(self):
def __getitem__(self, key):
if key == "%s%d" % (UNPACK_KEY, id(self)):
return self
raise KeyError(key)
if self._access is None:
raise KeyError(key)
self._access.append(key)

def __len__(self):
return 1
Expand Down

0 comments on commit 02cb01a

Please sign in to comment.