Skip to content

Commit 919b7cc

Browse files
committed
fix: metadata in trait-cstros deprecated since traitlets-4.1
1 parent c193f66 commit 919b7cc

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

qgrid/grid.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -570,44 +570,43 @@ class can be constructed directly but that's not recommended because
570570
_model_module_version = Unicode('1.1.1').tag(sync=True)
571571

572572
_df = Instance(pd.DataFrame)
573-
_df_json = Unicode('', sync=True)
573+
_df_json = Unicode('').tag(sync=True)
574574
_primary_key = List()
575575
_primary_key_display = Dict({})
576-
_row_styles = Dict({}, sync=True)
576+
_row_styles = Dict({}).tag(sync=True)
577577
_disable_grouping = Bool(False)
578-
_columns = Dict({}, sync=True)
579-
_editable_rows = Dict({}, sync=True)
578+
_columns = Dict({}).tag(sync=True)
579+
_editable_rows = Dict({}).tag(sync=True)
580580
_filter_tables = Dict({})
581581
_sorted_column_cache = Dict({})
582-
_interval_columns = List([], sync=True)
582+
_interval_columns = List([]).tag(sync=True)
583583
_period_columns = List([])
584584
_string_columns = List([])
585585
_sort_helper_columns = Dict({})
586586
_initialized = Bool(False)
587587
_ignore_df_changed = Bool(False)
588588
_unfiltered_df = Instance(pd.DataFrame)
589-
_index_col_name = Unicode('qgrid_unfiltered_index', sync=True)
589+
_index_col_name = Unicode('qgrid_unfiltered_index').tag(sync=True)
590590
_sort_col_suffix = Unicode('_qgrid_sort_column')
591-
_multi_index = Bool(False, sync=True)
591+
_multi_index = Bool(False).tag(sync=True)
592592
_edited = Bool(False)
593593
_selected_rows = List([])
594594
_viewport_range = Tuple(Integer(),
595595
Integer(),
596-
default_value=(0, 100),
597-
sync=True)
598-
_df_range = Tuple(Integer(), Integer(), default_value=(0, 100), sync=True)
599-
_row_count = Integer(0, sync=True)
600-
_sort_field = Any(None, sync=True)
601-
_sort_ascending = Bool(True, sync=True)
596+
default_value=(0, 100).tag(sync=True)
597+
_df_range = Tuple(Integer(), Integer(), default_value=(0, 100)).tag(sync=True)
598+
_row_count = Integer(0).tag(sync=True)
599+
_sort_field = Any(None).tag(sync=True)
600+
_sort_ascending = Bool(True).tag(sync=True)
602601
_handlers = Instance(_EventHandlers)
603602

604603
df = Instance(pd.DataFrame)
605-
precision = Integer(6, sync=True)
604+
precision = Integer(6).tag(sync=True)
606605
grid_options = Dict(sync=True)
607606
column_options = Dict({})
608607
column_definitions = Dict({})
609608
row_edit_callback = Instance(FunctionType, sync=False, allow_none=True)
610-
show_toolbar = Bool(False, sync=True)
609+
show_toolbar = Bool(False).tag(sync=True)
611610
id = Unicode(sync=True)
612611

613612
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)