Compare commits

...

1 Commits

Author SHA1 Message Date
4ba5bfdfee 新增函数泛型注解 2025-11-06 20:37:30 +08:00

View File

@@ -140,7 +140,7 @@ class Architecture:
return type_ in cls._RegisteredObjects
@classmethod
def Get(cls, type_:type) -> Any:
def Get[T](cls, type_:Typen[T]) -> T:
return cls._RegisteredObjects[type_]
@classmethod