Skip to content

Commit 8f491b6

Browse files
committed
check property type in data node config checker
1 parent 0090775 commit 8f491b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taipy/core/config/checkers/_data_node_config_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _check_property_types(self, data_node_config_id: str, data_node_config: Data
216216
for prop_key, prop_type in property_types.items():
217217
prop_value = data_node_config.properties.get(prop_key) if data_node_config.properties else None
218218

219-
if prop_value and not isinstance(prop_value, prop_type):
219+
if prop_value and not isinstance(prop_value, prop_type) and not issubclass(prop_value, prop_type):
220220
self._error(
221221
prop_key,
222222
prop_value,

0 commit comments

Comments
 (0)