diff --git a/shinywidgets/_comm.py b/shinywidgets/_comm.py index fb6939d..d7c7e22 100644 --- a/shinywidgets/_comm.py +++ b/shinywidgets/_comm.py @@ -32,8 +32,8 @@ class ShinyComm: # we don't have a kernel here, so give it a meaningless value. kernel = "Shiny" - _msg_callback: MsgCallback - _close_callback: MsgCallback + _msg_callback: Optional[MsgCallback] + _close_callback: Optional[MsgCallback] _closed: bool = False _closed_data: Dict[str, object] = {}