From 13dba2c8f5ced54fc304c326f9e2fadd62c353d9 Mon Sep 17 00:00:00 2001 From: yongtenglei Date: Wed, 3 Dec 2025 10:43:44 +0800 Subject: [PATCH] enable beartype --- agent/__init__.py | 4 ++-- api/__init__.py | 4 ++-- deepdoc/__init__.py | 4 ++-- intergrations/chatgpt-on-wechat/plugins/__init__.py | 4 ++-- rag/__init__.py | 5 +++-- sdk/python/ragflow_sdk/__init__.py | 4 ++-- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/agent/__init__.py b/agent/__init__.py index a42cd9a6d..643f79713 100644 --- a/agent/__init__.py +++ b/agent/__init__.py @@ -14,5 +14,5 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package +beartype_this_package() diff --git a/api/__init__.py b/api/__init__.py index a42cd9a6d..643f79713 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -14,5 +14,5 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package +beartype_this_package() diff --git a/deepdoc/__init__.py b/deepdoc/__init__.py index a42cd9a6d..643f79713 100644 --- a/deepdoc/__init__.py +++ b/deepdoc/__init__.py @@ -14,5 +14,5 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package +beartype_this_package() diff --git a/intergrations/chatgpt-on-wechat/plugins/__init__.py b/intergrations/chatgpt-on-wechat/plugins/__init__.py index 0d62c1f4c..557f0d1f1 100644 --- a/intergrations/chatgpt-on-wechat/plugins/__init__.py +++ b/intergrations/chatgpt-on-wechat/plugins/__init__.py @@ -14,8 +14,8 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package +beartype_this_package() from .ragflow_chat import RAGFlowChat diff --git a/rag/__init__.py b/rag/__init__.py index a42cd9a6d..3c485c025 100644 --- a/rag/__init__.py +++ b/rag/__init__.py @@ -14,5 +14,6 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package + +beartype_this_package() diff --git a/sdk/python/ragflow_sdk/__init__.py b/sdk/python/ragflow_sdk/__init__.py index cbfec4152..ea383cfc3 100644 --- a/sdk/python/ragflow_sdk/__init__.py +++ b/sdk/python/ragflow_sdk/__init__.py @@ -14,8 +14,8 @@ # limitations under the License. # -# from beartype.claw import beartype_this_package -# beartype_this_package() +from beartype.claw import beartype_this_package +beartype_this_package() import importlib.metadata