浏览代码

check property type in data node config checker

jean-robin medori 3 月之前
父节点
当前提交
8f491b689a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      taipy/core/config/checkers/_data_node_config_checker.py

+ 1 - 1
taipy/core/config/checkers/_data_node_config_checker.py

@@ -216,7 +216,7 @@ class _DataNodeConfigChecker(_ConfigChecker):
             for prop_key, prop_type in property_types.items():
                 prop_value = data_node_config.properties.get(prop_key) if data_node_config.properties else None
 
-                if prop_value and not isinstance(prop_value, prop_type):
+                if prop_value and not isinstance(prop_value, prop_type) and not issubclass(prop_value, prop_type):
                     self._error(
                         prop_key,
                         prop_value,