From 99348b39e57db3365cc6df8072e9226514f15d68 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 17 Mar 2023 09:32:07 +0100 Subject: [PATCH] Any --- python/ipywidgets/ipywidgets/widgets/widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ipywidgets/ipywidgets/widgets/widget.py b/python/ipywidgets/ipywidgets/widgets/widget.py index 470c3c35f5..418fd7e9a3 100644 --- a/python/ipywidgets/ipywidgets/widgets/widget.py +++ b/python/ipywidgets/ipywidgets/widgets/widget.py @@ -11,7 +11,7 @@ from collections.abc import Iterable from IPython import get_ipython from traitlets import ( - HasTraits, Unicode, Dict, Instance, List, Int, Set, Bytes, observe, default, Container, + Any, HasTraits, Unicode, Dict, Instance, List, Int, Set, Bytes, observe, default, Container, Undefined) from json import loads as jsonloads, dumps as jsondumps @@ -479,7 +479,7 @@ def get_view_spec(self): _view_count = Int(None, allow_none=True, help="EXPERIMENTAL: The number of views of the model displayed in the frontend. This attribute is experimental and may change or be removed in the future. None signifies that views will not be tracked. Set this to 0 to start tracking view creation/deletion.").tag(sync=True) - comm = Instance(object, allow_none=True) + comm = Any(allow_none=True) keys = List(help="The traits which are synced.")