From 50ddf84c76bc5fb6a2974a177e0d7cca370c5e13 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Sat, 12 Jul 2025 22:16:23 +0800 Subject: [PATCH] =?UTF-8?q?BS=200.1.0=20=E8=A7=A3=E9=99=A4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/Runtime/Architecture.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Convention/Runtime/Architecture.py b/Convention/Runtime/Architecture.py index 4d54251..2635523 100644 --- a/Convention/Runtime/Architecture.py +++ b/Convention/Runtime/Architecture.py @@ -22,7 +22,7 @@ class IConvertModel[T](IConvertable[T], IModel): pass class SingletonModel[T](IModel): - _InjectInstances:Dict[type,object] = {} + _InjectInstances:Dict[type,Any] = {} @staticmethod def GetInstance(t:Typen[T]) -> T: @@ -106,10 +106,10 @@ class Architecture: raise NotImplementedError() _RegisterHistory: Set[type] = set() - _UncompleteTargets: Dict[type,object] = {} + _UncompleteTargets: Dict[type,Any] = {} _Completer: Dict[type,Action] = {} _Dependences: Dict[type,DependenceModel] = {} - _Childs: Dict[type,object] = {} + _Childs: Dict[type,Any] = {} class Registering(IConvertModel[bool]): def __init__(self,registerSlot:type) -> None: @@ -149,7 +149,7 @@ class Architecture: cls._UncompleteTargets.pop(complete, None) @classmethod - def Register(cls, slot:type, target:object, completer:Action, *dependences:type) -> 'Architecture.Registering': + def Register(cls, slot:type, target:Any, completer:Action, *dependences:type) -> 'Architecture.Registering': if slot in cls._RegisterHistory: raise InvalidOperationError("Illegal duplicate registrations") @@ -183,11 +183,11 @@ class Architecture: return cls.Contains(type(T)) @classmethod - def InternalGet(cls, type_:type) -> object: + def InternalGet(cls, type_:type) -> Any: return cls._Childs[type_] @classmethod - def Get(cls, type_:type) -> object: + def Get(cls, type_:type) -> Any: return cls.InternalGet(type_) @classmethod