Skip to content

Commit

Permalink
refactor to include polars exposed type when checker raise
Browse files Browse the repository at this point in the history
  • Loading branch information
Toan Quach authored and Toan Quach committed Dec 5, 2024
1 parent a841494 commit 1990026
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 @@ -223,9 +223,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 1990026

Please sign in to comment.