@@ -248,15 +248,15 @@ def _update_configure_preset(existing_preset: ConfigurePreset, build_directory:
248248 """
249249 # Update existing preset to ensure it inherits from 'default'
250250 if existing_preset .inherits is None :
251- existing_preset .inherits = 'default'
251+ existing_preset .inherits = 'default' # type: ignore[misc]
252252 elif isinstance (existing_preset .inherits , str ) and existing_preset .inherits != 'default' :
253- existing_preset .inherits = ['default' , existing_preset .inherits ]
253+ existing_preset .inherits = ['default' , existing_preset .inherits ] # type: ignore[misc]
254254 elif isinstance (existing_preset .inherits , list ) and 'default' not in existing_preset .inherits :
255255 existing_preset .inherits .insert (0 , 'default' )
256256
257257 # Update binary directory if not set
258258 if not existing_preset .binaryDir :
259- existing_preset .binaryDir = build_directory .as_posix ()
259+ existing_preset .binaryDir = build_directory .as_posix () # type: ignore[misc]
260260
261261 @staticmethod
262262 def _handle_configure_presets (
@@ -270,7 +270,7 @@ def _handle_configure_presets(
270270 build_directory: The build directory to use
271271 """
272272 if root_preset .configurePresets is None :
273- root_preset .configurePresets = [user_configure_preset ]
273+ root_preset .configurePresets = [user_configure_preset ] # type: ignore[misc]
274274 else :
275275 # Update or add the user's configure preset
276276 existing_preset = next (
@@ -290,7 +290,7 @@ def _handle_build_presets(root_preset: CMakePresets, user_build_presets: list[Bu
290290 user_build_presets: The user's build presets to add
291291 """
292292 if root_preset .buildPresets is None :
293- root_preset .buildPresets = user_build_presets .copy ()
293+ root_preset .buildPresets = user_build_presets .copy () # type: ignore[misc]
294294 else :
295295 # Add build presets if they don't exist
296296 for build_preset in user_build_presets :
@@ -313,7 +313,7 @@ def _handle_includes(root_preset: CMakePresets, preset_file: Path, cppython_pres
313313
314314 # Handle includes
315315 if not root_preset .include :
316- root_preset .include = []
316+ root_preset .include = [] # type: ignore[misc]
317317
318318 if str (relative_preset ) not in root_preset .include :
319319 root_preset .include .append (str (relative_preset ))
0 commit comments