Skip to content

Commit

Permalink
Copy default grid_options/column_options before assign (quantopian/qg…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihanyue committed Feb 4, 2024
1 parent 7b7da4c commit cc8d8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgrid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ def show_grid(data_frame,
if not isinstance(precision, Integral):
raise TypeError("precision must be int, not %s" % type(precision))
if column_options is None:
column_options = defaults.column_options
column_options = defaults.column_options.copy()
else:
options = defaults.column_options.copy()
options.update(column_options)
column_options = options
if grid_options is None:
grid_options = defaults.grid_options
grid_options = defaults.grid_options.copy()
else:
options = defaults.grid_options.copy()
options.update(grid_options)
Expand Down

0 comments on commit cc8d8dc

Please sign in to comment.