|
21 | 21 | _remove_buffers, # pyright: ignore[reportUnknownVariableType, reportGeneralTypeIssues]
|
22 | 22 | )
|
23 | 23 | from ipywidgets.widgets.widget import Widget
|
24 |
| -from shiny import Session, event, reactive |
| 24 | +from shiny import Session, reactive |
25 | 25 | from shiny._utils import run_coro_sync, wrap_async
|
26 | 26 | from shiny.http_staticfiles import StaticFiles
|
27 | 27 | from shiny.module import resolve_id
|
@@ -64,7 +64,7 @@ def init_shiny_widget(w: Widget):
|
64 | 64 | # Break out of any module-specific session. Otherwise, input.shinywidgets_comm_send
|
65 | 65 | # will be some module-specific copy.
|
66 | 66 | while hasattr(session, "_parent"):
|
67 |
| - session = session._parent |
| 67 | + session = cast(Session, session._parent) |
68 | 68 |
|
69 | 69 | # `Widget` has `comm = Instance('ipykernel.comm.Comm')` which means we'd get a
|
70 | 70 | # runtime error if we try to set this attribute to a different class, but
|
@@ -280,7 +280,7 @@ def reactive_depend(
|
280 | 280 | Reactively read a Widget's trait(s)
|
281 | 281 | """
|
282 | 282 |
|
283 |
| - ctx = reactive.get_current_context() |
| 283 | + ctx = reactive.get_current_context() # pyright: ignore[reportPrivateImportUsage] |
284 | 284 |
|
285 | 285 | def invalidate(change: object):
|
286 | 286 | ctx.invalidate()
|
|
0 commit comments