bugfix:修复一些bug

This commit is contained in:
2026-10-02 02:36:11 -07:00
parent 68588d1f92
commit 5b1e6c5654
14 changed files with 37 additions and 81 deletions
+1 -1
View File
@@ -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(