Skip to content

Commit

Permalink
Remove commented-out code in utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed Jan 11, 2025
1 parent 453651a commit 4cc9f0c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions yfinance/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,17 +963,10 @@ def generate_list_table_from_dict(data: dict, bullets: bool=True, title: str=Non
Generate a list-table for the docstring showing permitted keys/values.
"""
table = _generate_table_configurations(title)
# for k, values in data.items():
for k in sorted(data.keys()):
# Sort keys by total string length of values.
# lengths = [(k, len(data[k])) for k in data.keys()]
# lengths = [(k, sum(len(str(v)) for v in data[k])) for k in data.keys()]
# lengths.sort(key=lambda x: x[1])
# for k,l in lengths:
values = data[k]
table += ' '*3 + f"* - {k}\n"
lengths = [len(str(v)) for v in values]
# if bullets and key not in ['region']:
if bullets and max(lengths) > 5:
table += ' '*5 + "-\n"
for value in sorted(values):
Expand All @@ -988,7 +981,6 @@ def generate_list_table_from_dict_of_dict(data: dict, bullets: bool=True, title:
Generate a list-table for the docstring showing permitted keys/values.
"""
table = _generate_table_configurations(title)
# for k, values in data.items():
for k in sorted(data.keys()):
values = data[k]
value_str = values
Expand Down

0 comments on commit 4cc9f0c

Please sign in to comment.