bugfix:修复一些bug
This commit is contained in:
@@ -105,7 +105,7 @@ def list_components(catalog: ComponentCatalog) -> dict:
|
||||
|
||||
|
||||
def get_materials(catalog: ComponentCatalog, component_types: list[str]) -> dict:
|
||||
"""指定类型的物料默认配置,同一类型的多个预设全部返回"""
|
||||
"""指定类型的物料默认配置"""
|
||||
known = {item.type for item in catalog.components}
|
||||
if unknown := [item for item in component_types if item not in known]:
|
||||
raise ValueError(
|
||||
|
||||
Reference in New Issue
Block a user