mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
[mypy] fix: fix mypy error in singly_linked_list.py (#5517)
The list comprehension shortcut was implicitly expecting a return value causing a mypy error since `insert_tail` doesn't return a value
This commit is contained in:
parent
fdf095f69f
commit
9153db2d27
|
@ -409,7 +409,9 @@ def test_singly_linked_list_2() -> None:
|
||||||
12.20,
|
12.20,
|
||||||
]
|
]
|
||||||
linked_list = LinkedList()
|
linked_list = LinkedList()
|
||||||
[linked_list.insert_tail(i) for i in input]
|
|
||||||
|
for i in input:
|
||||||
|
linked_list.insert_tail(i)
|
||||||
|
|
||||||
# Check if it's empty or not
|
# Check if it's empty or not
|
||||||
assert linked_list.is_empty() is False
|
assert linked_list.is_empty() is False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user