From 79a56539674135816774a91fe6e6ab296e8764d6 Mon Sep 17 00:00:00 2001 From: Romain Cledat Date: Wed, 18 Dec 2024 01:26:29 -0800 Subject: [PATCH] Relax restriction on keys in configuration --- metaflow/user_configs/config_parameters.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/metaflow/user_configs/config_parameters.py b/metaflow/user_configs/config_parameters.py index 1eb295edb9..062e29e8f5 100644 --- a/metaflow/user_configs/config_parameters.py +++ b/metaflow/user_configs/config_parameters.py @@ -70,10 +70,6 @@ class ConfigValue(collections.abc.Mapping): # as well as a [] notation. def __init__(self, data: Dict[str, Any]): - if any(not ID_PATTERN.match(k) for k in data.keys()): - raise MetaflowException( - "All keys in the configuration must be valid Python identifiers" - ) self._data = data def __getattr__(self, key: str) -> Any: