@@ -99,7 +99,7 @@ def update_from_specifications(self, specifications: dict[str, dict[str, Any]])
9999 self .update (node .children )
100100 self .update (nodes )
101101 build_tree (self ._reg .values ())
102- def update_from_toml (self , toml : str ) -> None :
102+ def update_from_toml (self , toml_data : str ) -> None :
103103 """Updates the registry by loading node data from a TOML document string.
104104
105105 Parses the TOML string, which is expected to contain a dictionary mapping
@@ -108,7 +108,7 @@ def update_from_toml(self, toml: str) -> None:
108108
109109 Performs validation checks before loading:
110110
111- - Ensures the TOML data either defines a root node (` node_type` ='root'
111+ - Ensures the TOML data either defines a root node (node_type='root'
112112 and no 'parent') or contains at least one node whose parent UUID
113113 already exists in the current registry.
114114 - If a root node is defined in the TOML and a root node is already
@@ -136,7 +136,7 @@ def update_from_toml(self, toml: str) -> None:
136136 KeyError: If essential keys like 'node_type' are missing in the TOML data
137137 for a node.
138138 """
139- data : dict [str , Any ] = loads (toml )
139+ data : dict [str , Any ] = loads (toml_data )
140140 # Validate data
141141 known : set [uuid .UUID ] = set (self .keys ())
142142 has_root_node : bool = False
0 commit comments