Explorar o código

check property type in data node config checker

jean-robin medori hai 3 meses
pai
achega
8f491b689a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,