Skip to content

Commit d77a285

Browse files
imported annotations from __future__
1 parent a10ff15 commit d77a285

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

data_structures/kd_tree/kd_node.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from __future__ import annotations
2+
3+
14
class KDNode:
25
"""
36
Represents a node in a KD-Tree.
@@ -11,8 +14,8 @@ class KDNode:
1114
def __init__(
1215
self,
1316
point: list[float],
14-
left: "KDNode" | None = None,
15-
right: "KDNode" | None = None,
17+
left: KDNode | None = None,
18+
right: KDNode | None = None,
1619
) -> None:
1720
"""
1821
Initializes a KDNode with the given point and child nodes.

0 commit comments

Comments
 (0)