refac: small refactor and formatting

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-02-21 19:25:25 +00:00
commit 38ce27352d

View file

@ -123,7 +123,8 @@ def get_class_doc(class_name):
def format_dict(d): def format_dict(d):
""" """
Formats a dictionary by removing certain keys and modifying the values of other keys. Formats a dictionary by removing certain keys and modifying the
values of other keys.
Args: Args:
d: the dictionary to format d: the dictionary to format
@ -164,11 +165,7 @@ def format_dict(d):
) )
# Add multline # Add multline
if key in ["suffix", "prefix", "template", "examples"]: value["multline"] = key in ["suffix", "prefix", "template", "examples"]
value["multline"] = True
else:
value["multline"] = False
# Replace default value with actual value # Replace default value with actual value
# if _type in ["str", "bool"]: # if _type in ["str", "bool"]:
# value["value"] = value.get("default", "") # value["value"] = value.get("default", "")