2020import shutil
2121import subprocess
2222import tempfile
23- import warnings
2423from dataclasses import dataclass
2524from pathlib import Path
2625from typing import TYPE_CHECKING
@@ -295,7 +294,7 @@ def load_all_skills(
295294 org_name : str | None = None ,
296295 sandbox_exposed_urls : list [ExposedUrlData ] | None = None ,
297296 marketplace_path : str | None = DEFAULT_MARKETPLACE_PATH ,
298- registered_marketplaces : list [" MarketplaceRegistration" ] | None = None ,
297+ registered_marketplaces : list [MarketplaceRegistration ] | None = None ,
299298) -> SkillLoadResult :
300299 """Load and merge skills from all configured sources.
301300
@@ -390,7 +389,7 @@ def load_all_skills(
390389
391390
392391def _load_marketplace_skills (
393- registrations : list [" MarketplaceRegistration" ],
392+ registrations : list [MarketplaceRegistration ],
394393) -> list [Skill ]:
395394 """Load skills from registered marketplaces with auto_load='all'.
396395
@@ -403,7 +402,11 @@ def _load_marketplace_skills(
403402 Returns:
404403 List of skills loaded from auto-load marketplaces.
405404 """
406- from openhands .sdk .plugin import MarketplaceRegistry , Plugin , fetch_plugin_with_resolution
405+ from openhands .sdk .plugin import (
406+ MarketplaceRegistry ,
407+ Plugin ,
408+ fetch_plugin_with_resolution ,
409+ )
407410
408411 all_skills : list [Skill ] = []
409412
@@ -422,7 +425,9 @@ def _load_marketplace_skills(
422425 for plugin_entry in marketplace .plugins :
423426 try :
424427 # Resolve and fetch the plugin
425- source , ref , subpath = marketplace .resolve_plugin_source (plugin_entry )
428+ source , ref , subpath = marketplace .resolve_plugin_source (
429+ plugin_entry
430+ )
426431 path , resolved_ref = fetch_plugin_with_resolution (
427432 source = source ,
428433 ref = ref ,
@@ -444,9 +449,7 @@ def _load_marketplace_skills(
444449 )
445450
446451 except Exception as e :
447- logger .warning (
448- f"Failed to load marketplace '{ reg .name } ': { e } "
449- )
452+ logger .warning (f"Failed to load marketplace '{ reg .name } ': { e } " )
450453
451454 return all_skills
452455
0 commit comments