mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-18 19:57:35 +00:00
"Removed type hints for None in Node and SortedLinkedList classes."
This commit is contained in:
parent
0795e15a6c
commit
807ceada2e
@ -25,7 +25,7 @@ class Node:
|
|||||||
Node(None)
|
Node(None)
|
||||||
"""
|
"""
|
||||||
self.data: int = data
|
self.data: int = data
|
||||||
self.next_node: Node | None = None
|
self.next_node: Node = None
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
"""
|
"""
|
||||||
@ -51,8 +51,8 @@ class SortedLinkedList:
|
|||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
self.numNodes: int = 0
|
self.numNodes: int = 0
|
||||||
self.head: Node | None = None
|
self.head: Node = None
|
||||||
self.tail: Node | None = None
|
self.tail: Node = None
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user