@@ -140,13 +140,13 @@ def test_flatten_list_with_empty_toolsets(self, add_tool):
140140 def test_flatten_invalid_type_in_list (self ):
141141 """Test that invalid types in the list raise TypeError."""
142142 with pytest .raises (TypeError , match = "Items in the tools list must be Tool or Toolset instances" ):
143- flatten_tools_or_toolsets (["not_a_tool" ]) # type: ignore[arg-type ]
143+ flatten_tools_or_toolsets (["not_a_tool" ]) # type: ignore[list-item ]
144144
145145 with pytest .raises (TypeError , match = "Items in the tools list must be Tool or Toolset instances" ):
146- flatten_tools_or_toolsets ([123 ]) # type: ignore[arg-type ]
146+ flatten_tools_or_toolsets ([123 ]) # type: ignore[list-item ]
147147
148148 with pytest .raises (TypeError , match = "Items in the tools list must be Tool or Toolset instances" ):
149- flatten_tools_or_toolsets ([{"key" : "value" }]) # type: ignore[arg-type ]
149+ flatten_tools_or_toolsets ([{"key" : "value" }]) # type: ignore[list-item ]
150150
151151 def test_flatten_invalid_type (self ):
152152 """Test that invalid root types raise TypeError."""
@@ -215,7 +215,7 @@ def test_warm_up_tools_with_single_tool(self):
215215 )
216216
217217 assert not tool .was_warmed_up
218- warm_up_tools ([tool ]) # type: ignore[arg-type]
218+ warm_up_tools ([tool ])
219219 assert tool .was_warmed_up
220220
221221 def test_warm_up_tools_with_single_toolset (self ):
@@ -270,7 +270,7 @@ def test_warm_up_tools_with_list_containing_toolset(self):
270270 assert not tool1 .was_warmed_up
271271 assert not tool2 .was_warmed_up
272272
273- warm_up_tools ([toolset ]) # type: ignore[arg-type]
273+ warm_up_tools ([toolset ])
274274
275275 # Both the toolset itself and individual tools should be warmed up
276276 assert toolset .was_warmed_up
@@ -307,7 +307,7 @@ def test_warm_up_tools_with_multiple_toolsets(self):
307307 assert not tool2 .was_warmed_up
308308 assert not tool3 .was_warmed_up
309309
310- warm_up_tools ([toolset1 , toolset2 ]) # type: ignore[arg-type]
310+ warm_up_tools ([toolset1 , toolset2 ])
311311
312312 # Both toolsets and all individual tools should be warmed up
313313 assert toolset1 .was_warmed_up
@@ -344,7 +344,7 @@ def test_warm_up_tools_with_mixed_tools_and_toolsets(self):
344344 assert not toolset_tool1 .was_warmed_up
345345 assert not toolset_tool2 .was_warmed_up
346346
347- warm_up_tools ([standalone_tool , toolset ]) # type: ignore[arg-type]
347+ warm_up_tools ([standalone_tool , toolset ])
348348
349349 # All tools and the toolset should be warmed up
350350 assert standalone_tool .was_warmed_up
0 commit comments