解决UnboundLocalError

This commit is contained in:
UnCLAS-Prommer
2025-08-31 12:30:11 +08:00
parent 4bee6002ff
commit aa1155cc5b
9 changed files with 65 additions and 67 deletions

View File

@@ -124,6 +124,7 @@ class ComponentRegistry:
self._components_classes[namespaced_name] = component_class
# 根据组件类型进行特定注册(使用原始名称)
ret = False
match component_type:
case ComponentType.ACTION:
assert isinstance(component_info, ActionInfo)