Skip to content

Commit 2b427a8

Browse files
committed
remove isinstance check
1 parent 71195a7 commit 2b427a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def pop_head(self) -> Node:
9292
self.size -= 1
9393
return h
9494

95-
def append(self, ll: object):
96-
if not isinstance(ll, LinkedList):
97-
raise TypeError('not a linked list')
95+
def append(self, ll: 'LinkedList') -> None:
9896
self.tail.next = ll.head
9997
self.size += ll.size
10098

0 commit comments

Comments
 (0)