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

Method __init__

data_structures/queues/linked_queue.py:10–12  ·  view source on GitHub ↗
(self, data: Any)

Source from the content-addressed store, hash-verified

8
9class Node:
10 def __init__(self, data: Any) -> None:
11 self.data: Any = data
12 self.next: Node | None = None
13
14 def __str__(self) -> str:
15 return f"{self.data}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected