refac: small refactor and formatting
This commit is contained in:
parent
b62174bb16
commit
38ce27352d
1 changed files with 3 additions and 6 deletions
|
|
@ -123,7 +123,8 @@ def get_class_doc(class_name):
|
|||
|
||||
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:
|
||||
d: the dictionary to format
|
||||
|
|
@ -164,11 +165,7 @@ def format_dict(d):
|
|||
)
|
||||
|
||||
# Add multline
|
||||
if key in ["suffix", "prefix", "template", "examples"]:
|
||||
value["multline"] = True
|
||||
else:
|
||||
value["multline"] = False
|
||||
|
||||
value["multline"] = key in ["suffix", "prefix", "template", "examples"]
|
||||
# Replace default value with actual value
|
||||
# if _type in ["str", "bool"]:
|
||||
# value["value"] = value.get("default", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue