mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2026-01-28 13:07:58 +01:00
documentacion y pistas de tipo en metodos
This commit is contained in:
parent
03522304fa
commit
bc4e7ed51d
4 changed files with 67 additions and 28 deletions
|
|
@ -4,7 +4,8 @@ from datetime import datetime
|
|||
import locale
|
||||
|
||||
|
||||
def join_list(the_list, separator="\n"):
|
||||
def join_list(the_list: list, separator: str = "\n") -> str:
|
||||
'''Join a list of objects in a string, with a separator.'''
|
||||
return ft.reduce(lambda x, y: x + (separator if x else "") + str(y), the_list, "")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue