diff --git a/app/domain/meta/words.py b/app/domain/meta/words.py index 7ca392998..7f67b5e54 100644 --- a/app/domain/meta/words.py +++ b/app/domain/meta/words.py @@ -129,7 +129,7 @@ class WordsMatcher(metaclass=Singleton): self, title: str, subtitle: Optional[str] = None, - custom_words: List[str] = None, + custom_words: Optional[List[str]] = None, ) -> Tuple[str, Optional[str], List[str]]: """ 预处理标题和副标题,支持跨字段应用集数偏移规则。 @@ -145,7 +145,7 @@ class WordsMatcher(metaclass=Singleton): self, title: str, subtitle: Optional[str], - custom_words: List[str] = None, + custom_words: Optional[List[str]] = None, ) -> Tuple[str, Optional[str], List[str]]: """按识别词顺序处理标题,并在需要时更新副标题中的集数。""" appley_words = [] diff --git a/tests/fixtures/architecture/mypy-baseline.json b/tests/fixtures/architecture/mypy-baseline.json index 523b4b322..0d6e1b70a 100644 --- a/tests/fixtures/architecture/mypy-baseline.json +++ b/tests/fixtures/architecture/mypy-baseline.json @@ -1282,7 +1282,7 @@ "operator": 1 }, "app/domain/metainfo.py": { - "arg-type": 6, + "arg-type": 5, "assignment": 4, "no-untyped-call": 3, "no-untyped-def": 1,