Skip to content

Commit 71195a7

Browse files
committed
change Optional[Node] to Node return value
1 parent 7abd848 commit 71195a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/chapter02/2.4 - Partition/miguel_2.4_soln.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_node_at(self, index: int) -> Node:
8383
return n
8484
n = n.next
8585

86-
def pop_head(self) -> Optional[Node]:
86+
def pop_head(self) -> Node:
8787
if self.head is None:
8888
raise IndexError('no head to pop')
8989
h = self.head

0 commit comments

Comments
 (0)