mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 11:37:36 +08:00
fix: mypy 0.991 issues (#7988)
* fix: mypy 0.991 issues * fix: invalid condition for base case
This commit is contained in:
@ -49,7 +49,7 @@ class LinkedList:
|
||||
>>> print(linked_list)
|
||||
9 --> 14 --> 23
|
||||
"""
|
||||
if not self.is_empty:
|
||||
if self.is_empty():
|
||||
return ""
|
||||
else:
|
||||
iterate = self.head
|
||||
|
Reference in New Issue
Block a user