[mypy] fix: fix mypy error in singly_linked_list.py (#5517)
[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
TheAlgorithms/Python