Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Dec 3, 2024
1 parent 5914e4e commit 0c619a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panel/layout/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _get_model(
self, doc: Document, root: Optional[Model] = None,
parent: Optional[Model] = None, comm: Optional[Comm] = None
) -> Model:
self._bokeh_model = lazy_load(
Modal._bokeh_model = lazy_load(
'panel.models.modal', 'Modal', isinstance(comm, JupyterComm), root
)
return super()._get_model(doc, root, parent, comm)
Expand Down
4 changes: 2 additions & 2 deletions panel/models/modal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

from bokeh.core.properties import Bool
from bokeh.events import ModelEvent
from bokeh.events import Model, ModelEvent

from ..io.resources import bundled_files
from ..util import classproperty
Expand Down Expand Up @@ -44,7 +44,7 @@ def __js_skip__(cls):
class ModalDialogEvent(ModelEvent):
event_name = 'modal-dialog-event'

def __init__(self, model: ModelEvent, open: bool):
def __init__(self, model: Model | None, open: bool):
self.open = open
super().__init__(model=model)

Expand Down

0 comments on commit 0c619a0

Please sign in to comment.