Skip to content

Commit 405d5e3

Browse files
committed
couple typing fixes
1 parent 799900d commit 405d5e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ipyshiny/_dependencies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010

1111
from ipywidgets import Widget, DOMWidget
1212
from ipywidgets._version import __html_manager_version__
13-
from jupyter_core.paths import jupyter_path
13+
from jupyter_core.paths import jupyter_path # type: ignore
1414

1515

1616
from htmltools import HTMLDependency, tags
17+
from htmltools._core import HTMLDependencySource
1718
from shiny import Session
1819

1920
from . import __version__
@@ -99,7 +100,7 @@ def require_dependency(w: Widget, session: Session) -> Optional[HTMLDependency]:
99100
return None
100101

101102
version = as_version(getattr(w, "_model_module_version", "1.0"))
102-
source = {"package": None, "subdir": module_dir}
103+
source = HTMLDependencySource(subdir=module_dir)
103104

104105
dep = HTMLDependency(module_name, version, source=source)
105106
# Get the location where the dependency files will be mounted by the shiny app

0 commit comments

Comments
 (0)