fix(tree): move Iterable import into type-checking block

This commit is contained in:
2026-07-11 09:05:04 -04:00
parent a046862ca1
commit ebbd112d50
+1 -2
View File
@@ -11,7 +11,6 @@ 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
@@ -20,7 +19,7 @@ from loguru import logger
from app.tree.index import L1Node, L2Node, L3Node, TreeIndex from app.tree.index import L1Node, L2Node, L3Node, TreeIndex
if TYPE_CHECKING: if TYPE_CHECKING:
from collections.abc import Callable from collections.abc import Callable, Iterable
# 节点联合类型(内部使用) # 节点联合类型(内部使用)
AnyNode = L1Node | L2Node | L3Node AnyNode = L1Node | L2Node | L3Node