Skip to content

Commit

Permalink
fixed checker raised incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
Toan Quach authored and Toan Quach committed Dec 9, 2024
1 parent 5a52d3f commit 636dbe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taipy/core/config/checkers/_data_node_config_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ def _check_exposed_type(self, data_node_config_id: str, data_node_config: DataNo
if not isinstance(data_node_config.exposed_type, str):
return
if data_node_config.exposed_type not in DataNodeConfig._ALL_EXPOSED_TYPES:
valid_exposed_types_str = ", ".join([f'"{x}"' for x in DataNodeConfig._ALL_EXPOSED_TYPES])
self._error(
data_node_config._EXPOSED_TYPE_KEY,
data_node_config.exposed_type,
f"The `{data_node_config._EXPOSED_TYPE_KEY}` of DataNodeConfig `{data_node_config_id}` "
f'must be either "pandas", "numpy", or a custom type.',
f"must be either {valid_exposed_types_str}, or a custom type.",
)

0 comments on commit 636dbe3

Please sign in to comment.