Skip to content

Commit bcb1d90

Browse files
committed
Appease linter
Signed-off-by: Itay Dafna <[email protected]>
1 parent e98d197 commit bcb1d90

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/test_datagrid.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,18 @@ def test_default_dataframe_index(dataframe):
221221
# Default and unused keys should not be in schema
222222
assert "key" in data_obj["schema"]["primaryKey"]
223223

224+
224225
def test_setting_column_widths_on_multiindex_grid():
225226
import pandas as pd
227+
226228
from ipydatagrid import DataGrid
227229

228-
col_names = [('Parent Column', 'SubCol 1'), ('Parent Column', 'SubCol 2')]
229-
df = pd.DataFrame(data={i: [1, 2, 3] for i in col_names},
230-
columns=col_names)
230+
col_names = [("Parent Column", "SubCol 1"), ("Parent Column", "SubCol 2")]
231+
df = pd.DataFrame(data={i: [1, 2, 3] for i in col_names}, columns=col_names)
231232

232-
grid = DataGrid(df, layout={'height': '200px'})
233+
grid = DataGrid(df, layout={"height": "200px"})
233234
grid
234235

235-
col_widths = {
236-
('Parent Column', 'SubCol 1'): 100
237-
}
236+
col_widths = {("Parent Column", "SubCol 1"): 100}
238237

239238
grid.column_widths = col_widths

0 commit comments

Comments
 (0)