diff --git a/src/mdpo/io.py b/src/mdpo/io.py index 6754a01..6ba8f2e 100644 --- a/src/mdpo/io.py +++ b/src/mdpo/io.py @@ -133,12 +133,5 @@ def save_file_checking_file_changed(filepath, content, encoding='utf-8'): def flatten(xss): - """Flatten a list of lists. - - Args: - xss (list): List of lists to flatten. - - Returns: - list: Flattened list. - """ + """Flatten a iterable of iterables.""" return (x for xs in xss for x in xs)