diff --git a/ipylab/main_area.py b/ipylab/main_area.py index 901016f..0f8cb4b 100644 --- a/ipylab/main_area.py +++ b/ipylab/main_area.py @@ -41,8 +41,8 @@ class MainArea(AsyncWidgetBase, HasApp): path = Unicode(read_only=True).tag(sync=True) name = Unicode(read_only=True).tag(sync=True) content = Instance(Panel, (), read_only=True).tag(sync=True, **widget_serialization) - status = UseEnum(ViewStatus, read_only=True).tag(sync=True) - console_status = UseEnum(ViewStatus, read_only=True).tag(sync=True) + status: ViewStatus = UseEnum(ViewStatus, read_only=True).tag(sync=True) + console_status: ViewStatus = UseEnum(ViewStatus, read_only=True).tag(sync=True) @validate("name", "path") def _validate_name_path(self, proposal): diff --git a/ipylab/widgets.py b/ipylab/widgets.py index 1609bb0..3d11133 100644 --- a/ipylab/widgets.py +++ b/ipylab/widgets.py @@ -37,7 +37,7 @@ class Title(WidgetBase): dataset = Dict().tag(sync=True) icon_label = Unicode().tag(sync=True) # Widgets - icon = InstanceDict(Icon, allow_none=True).tag(sync=True, **widget_serialization) + icon: Icon = InstanceDict(Icon, allow_none=True).tag(sync=True, **widget_serialization) @register @@ -49,7 +49,7 @@ class Panel(Box, HasApp): _model_name = Unicode("PanelModel").tag(sync=True) _view_name = Unicode("PanelView").tag(sync=True) - title = InstanceDict(Title, ()).tag(sync=True, **widget_serialization) + title: Title = InstanceDict(Title, ()).tag(sync=True, **widget_serialization) class_name = Unicode("ipylab-panel").tag(sync=True) _comm = None closed = Bool(read_only=True).tag(sync=True)