diff --git a/yfinance/utils.py b/yfinance/utils.py index 7193257c..57443b5e 100644 --- a/yfinance/utils.py +++ b/yfinance/utils.py @@ -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): @@ -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