Skip to content

Commit 5d25f17

Browse files
committed
Fix style issue requested by reviewer.
1 parent 76e8873 commit 5d25f17

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

doc/sphinxext/math_symbol_table.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ def calculate_best_columns(
6767
6868
Parameters
6969
----------
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.
7376
7477
Returns
7578
-------
76-
int: The best number of columns that fits within the constraints.
79+
int
80+
Number of columns that fits within the constraints.
7781
"""
7882
max_cell_width = max(len(sym) for sym in symbols_list)
7983
return min(max_columns, len(symbols_list), max_line_length // max_cell_width)
@@ -138,6 +142,7 @@ def setup(app):
138142
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
139143
return metadata
140144

145+
141146
if __name__ == "__main__":
142147
# Do some verification of the tables
143148

0 commit comments

Comments
 (0)