Skip to content

Commit 1853a62

Browse files
authored
Merge pull request #430 from xoolive/pr-fix_depwarn
Fix some DeprecationWarning
2 parents d73bf9a + 57a4c42 commit 1853a62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipyleaflet/leaflet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class LayerGroup(Layer):
439439
_view_name = Unicode('LeafletLayerGroupView').tag(sync=True)
440440
_model_name = Unicode('LeafletLayerGroupModel').tag(sync=True)
441441

442-
layers = Tuple(trait=Instance(Layer)).tag(sync=True, **widget_serialization)
442+
layers = Tuple().tag(trait=Instance(Layer), sync=True, **widget_serialization)
443443

444444
_layer_ids = List()
445445

@@ -881,7 +881,7 @@ def _default_options(self):
881881
east = Float(def_loc[1], read_only=True).tag(sync=True)
882882
west = Float(def_loc[1], read_only=True).tag(sync=True)
883883

884-
layers = Tuple(trait=Instance(Layer)).tag(sync=True, **widget_serialization)
884+
layers = Tuple().tag(trait=Instance(Layer), sync=True, **widget_serialization)
885885

886886
@default('layers')
887887
def _default_layers(self):
@@ -968,7 +968,7 @@ def substitute_layer(self, old, new):
968968
def clear_layers(self):
969969
self.layers = ()
970970

971-
controls = Tuple(trait=Instance(Control)).tag(sync=True, **widget_serialization)
971+
controls = Tuple().tag(trait=Instance(Control), sync=True, **widget_serialization)
972972
_control_ids = List()
973973

974974
@validate('controls')

0 commit comments

Comments
 (0)