From efd826f6777e935ca0dceabfa2fcdfbd47e1ac5a Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Sat, 20 Dec 2025 19:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=85=BC=E5=AE=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Config.py | 4 ++-- Runtime/GlobalConfig.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Config.py b/Runtime/Config.py index b273793..107bffe 100644 --- a/Runtime/Config.py +++ b/Runtime/Config.py @@ -187,10 +187,10 @@ def InternalImportingThrow( ): with lock_guard(): requierds_str = ",".join([f"<{r}>" for r in requierds]) - print(f"Internal Convention package is not installed.\n{messageBase.format_map({ + print("Internal Convention package is not installed.\n", messageBase.format_map({ "module": moduleName, "required": requierds_str - })}\n[{ConsoleFrontColor.RESET}{format_traceback_info(back=2)}{ConsoleFrontColor.RED}]") + }), "\n[",ConsoleFrontColor.RESET,format_traceback_info(back=2),ConsoleFrontColor.RED,"]") def ReleaseFailed2Requirements(): global ImportingFailedSet diff --git a/Runtime/GlobalConfig.py b/Runtime/GlobalConfig.py index 1760897..b44d1ce 100644 --- a/Runtime/GlobalConfig.py +++ b/Runtime/GlobalConfig.py @@ -228,7 +228,7 @@ class GlobalConfig: return self # 配置查找 - def FindItem[T](self, key: str, default: Optional[T] = None) -> Optional[T]: + def FindItem(self, key: str, default: Optional[Any] = None) -> Optional[Any]: """查找配置项,支持默认值""" if key in self._data_pair: return self._data_pair[key]