Compare commits

...

1 Commits

Author SHA1 Message Date
a79ba69443 修复无依赖时Architecture注册的错误 2025-11-05 17:49:31 +08:00

View File

@@ -131,8 +131,9 @@ class Architecture:
if slot in cls._RegisteringRuntime:
raise InvalidOperationError("Illegal duplicate registrations")
cls._RegisteringRuntime[slot] = Architecture.Registering(slot, target, DependenceModel(Architecture.TypeQuery(dependence) for dependence in dependences), action)
dependences = cls._RegisteringRuntime[slot].dependences
cls._InternalRegisteringComplete()
return cls._RegisteringRuntime[slot].dependences
return dependences
@classmethod
def Contains(cls, type_:type) -> bool: