File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def main() -> int:
135135 # Tools with false value or whose group "enabled" is false get disabled.
136136 enabled_tools_config = config .get ("enabled_tools" , {})
137137 if isinstance (enabled_tools_config , dict ):
138- for _group_key , group_val in enabled_tools_config .items ():
138+ for group_val in enabled_tools_config .values ():
139139 if not isinstance (group_val , dict ):
140140 continue
141141 group_enabled = group_val .get ("enabled" , True )
@@ -153,7 +153,7 @@ def main() -> int:
153153 # Tools with true value get pinned.
154154 pinned_tools_config = config .get ("pinned_tools" , {})
155155 if isinstance (pinned_tools_config , dict ):
156- for _group_key , group_val in pinned_tools_config .items ():
156+ for group_val in pinned_tools_config .values ():
157157 if not isinstance (group_val , dict ):
158158 continue
159159 for tool_name , tool_val in group_val .items ():
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ def test_nested_enabled_tools_parsing(self):
253253 }
254254 }
255255 disabled : list [str ] = []
256- for _group_key , group_val in config ["enabled_tools" ].items ():
256+ for group_val in config ["enabled_tools" ].values ():
257257 if not isinstance (group_val , dict ):
258258 continue
259259 group_enabled = group_val .get ("enabled" , True )
@@ -284,7 +284,7 @@ def test_nested_pinned_tools_parsing(self):
284284 }
285285 }
286286 pinned : list [str ] = []
287- for _group_key , group_val in config ["pinned_tools" ].items ():
287+ for group_val in config ["pinned_tools" ].values ():
288288 if not isinstance (group_val , dict ):
289289 continue
290290 for tool_name , tool_val in group_val .items ():
You can’t perform that action at this time.
0 commit comments