Skip to content

Commit 50f93d3

Browse files
committed
remove optional
1 parent 39f6eb5 commit 50f93d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Result: 3 -> 1 -> 2 -> 10 -> 5 -> 5 -> 8
1515
"""
1616
import unittest
17-
from typing import Optional
1817

1918

2019
class Node:
@@ -58,7 +57,7 @@ def _append_num(self, d: int) -> None:
5857
self.tail = end
5958
self.size += 1
6059

61-
def _append_node(self, n: Optional[Node] = None) -> None:
60+
def _append_node(self, n: Node) -> None:
6261
if self.head is None:
6362
self.head = n
6463
self.tail = self.head

0 commit comments

Comments
 (0)