MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

data_structures/binary_tree/avl_tree.py:44–48  ·  view source on GitHub ↗
(self, data: Any)

Source from the content-addressed store, hash-verified

42
43class MyNode:
44 def __init__(self, data: Any) -> None:
45 self.data = data
46 self.left: MyNode | None = None
47 self.right: MyNode | None = None
48 self.height: int = 1
49
50 def get_data(self) -> Any:
51 return self.data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected