@@ -1560,6 +1560,7 @@ def import_variables(self, path: str, args: Optional[Tuple[Any, ...]] = None) ->
1560
1560
1561
1561
importer = MyPythonImporter (libcode )
1562
1562
1563
+ # TODO: add type information of the value including dict key names and member names
1563
1564
vars : List [ImportedVariableDefinition ] = [
1564
1565
ImportedVariableDefinition (
1565
1566
1 ,
@@ -1569,11 +1570,9 @@ def import_variables(self, path: str, args: Optional[Tuple[Any, ...]] = None) ->
1569
1570
source or (module_spec .origin if module_spec is not None else None ) or "" ,
1570
1571
name ,
1571
1572
None ,
1572
- value = NativeValue (value )
1573
- if value is None or isinstance (value , (int , float , bool , str , dict , list ))
1574
- else None ,
1575
- has_value = value is None or isinstance (value , (int , float , bool , str , dict , list )),
1576
- value_is_native = value is None or isinstance (value , (int , float , bool , str , dict , list )),
1573
+ value = NativeValue (value ) if value is None or isinstance (value , (int , float , bool , str )) else None ,
1574
+ has_value = value is None or isinstance (value , (int , float , bool , str )),
1575
+ value_is_native = value is None or isinstance (value , (int , float , bool , str )),
1577
1576
)
1578
1577
for name , value in importer .import_variables (import_name , args )
1579
1578
]
0 commit comments