Skip to content

Commit

Permalink
refactor to include polars exposed type when checker raise (#2303)
Browse files Browse the repository at this point in the history
Co-authored-by: Toan Quach <shiro@Shiros-MacBook-Pro.local>
  • Loading branch information
toan-quach and Toan Quach authored Dec 13, 2024
1 parent d7216f2 commit bbfa191
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 bbfa191

Please sign in to comment.