From 73aed2632c92fd406ed10784a5e76b431134f736 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 04:22:08 +0800 Subject: [PATCH] refactor(types): use canonical filter group schema --- app/application/rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/application/rules.py b/app/application/rules.py index 83e5d632c..9cd14baed 100644 --- a/app/application/rules.py +++ b/app/application/rules.py @@ -34,8 +34,7 @@ from app.application.subscription.contract import ( ) from app.domain.context import MediaInfo from app.schemas.common import JsonData -from app.schemas.rule import CustomRule -from app.schemas.system import FilterRuleGroup +from app.schemas.rule import CustomRule, FilterRuleGroup from app.schemas.types import SystemConfigKey _RULE_GROUP_LIST_CONFIG_KEYS = ( @@ -657,6 +656,7 @@ BUILTIN_RULE_SET: Dict[str, dict[str, Any]] = { class RuleParser: + """按线程隔离解析器状态,解析用户规则表达式。""" _lock = threading.Lock() _thread_local = threading.local()