refactor(tree): narrow _clean_join parameter type to Iterable

This commit is contained in:
2026-07-11 09:04:25 -04:00
parent 1c21e215e2
commit f0284199b8
+2 -1
View File
@@ -11,6 +11,7 @@ from __future__ import annotations
import re import re
from pathlib import Path from pathlib import Path
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any from typing import TYPE_CHECKING, Any
import numpy as np import numpy as np
@@ -94,7 +95,7 @@ _ENTITY_FIELDS_BY_LEVEL: dict[str, tuple[str, ...]] = {
} }
def _clean_join(values: object) -> str: def _clean_join(values: Iterable[object] | None) -> str:
"""过滤非空字符串、去重(保序)、分号拼接;无有效值返回空串。 """过滤非空字符串、去重(保序)、分号拼接;无有效值返回空串。
参数: 参数: