From 9b2dbd2bffdc856d0db1cb4c8f099a48bf518338 Mon Sep 17 00:00:00 2001 From: Carson Date: Tue, 7 Nov 2023 14:14:58 -0600 Subject: [PATCH] Small typing fix --- shinywidgets/_comm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] = {}