Skip to content

Commit 7cc65ed

Browse files
committed
add return type hint to get_node_at
1 parent f19f911 commit 7cc65ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/chapter02/2.3 - Delete Middle Node/miguel_2.3_soln.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def append_to_head(self, d: int) -> None:
5757
self.head = new_head
5858
self.size += 1
5959

60-
def get_node_at(self, index: int):
60+
def get_node_at(self, index: int) -> Node:
6161
if index < 0 or index >= self.size:
6262
raise IndexError('list index out of range')
6363
n = self.head

0 commit comments

Comments
 (0)