Conversion of some functions to generators.

This commit is contained in:
lwark
2024-07-31 13:08:56 -05:00
parent eb6cdc63e2
commit 8266275354
15 changed files with 374 additions and 369 deletions

View File

@@ -844,7 +844,7 @@ def html_to_pdf(html: str, output_file: Path | str):
def remove_key_from_list_of_dicts(input: list, key: str) -> list:
"""
Removes a key from all dictionaries in a list
Removes a key from all dictionaries in a list of dictionaries
Args:
input (list): Input list of dicts
@@ -939,5 +939,4 @@ def report_result(func):
logger.error(result.msg)
logger.debug(f"Returning: {output}")
return output
return wrapper