chore: update

This commit is contained in:
Junyan Qin
2025-11-07 22:55:33 +08:00
parent d43c2c498c
commit f79cde5b0c
2 changed files with 10 additions and 14 deletions

View File

@@ -85,7 +85,6 @@ async def load_json_config(
async def load_yaml_config(
config_name: str,
template_name: str = None,
template_resource_name: str = None,
template_data: dict = None,
completion: bool = True,
@@ -94,14 +93,14 @@ async def load_yaml_config(
Args:
config_name (str): Config file name
template_name (str): Template file name
template_resource_name (str): Template resource name
template_data (dict): Template data
completion (bool): Whether to automatically complete the config file in memory
Returns:
ConfigManager: Config file manager
"""
cfg_inst = yaml_file.YAMLConfigFile(config_name, template_name, template_data)
cfg_inst = yaml_file.YAMLConfigFile(config_name, template_resource_name, template_data)
cfg_mgr = ConfigManager(cfg_inst)
await cfg_mgr.load_config(completion=completion)