Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d25f17

Browse files
committed
Fix style issue requested by reviewer.
1 parent76e8873 commit5d25f17

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)forsyminsymbols_list)
7983
returnmin(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
returnmetadata
140144

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp