File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,17 @@ def calculate_best_columns(
67
67
68
68
Parameters
69
69
----------
70
- symbols_list (list): A list of symbols to be displayed.
71
- max_line_length (int): The maximum allowed length of a line.
72
- max_columns (int): The maximum number of columns to consider.
70
+ symbols_list : list of str
71
+ List symbols to be displayed.
72
+ max_line_length : int
73
+ Maximum allowed length of a line.
74
+ max_columns : int
75
+ Maximum number of columns to consider.
73
76
74
77
Returns
75
78
-------
76
- int: The best number of columns that fits within the constraints.
79
+ int
80
+ Number of columns that fits within the constraints.
77
81
"""
78
82
max_cell_width = max (len (sym ) for sym in symbols_list )
79
83
return min (max_columns , len (symbols_list ), max_line_length // max_cell_width )
@@ -138,6 +142,7 @@ def setup(app):
138
142
metadata = {'parallel_read_safe' : True , 'parallel_write_safe' : True }
139
143
return metadata
140
144
145
+
141
146
if __name__ == "__main__" :
142
147
# Do some verification of the tables
143
148
You can’t perform that action at this time.
0 commit comments