|
7 | 7 | import inspect
|
8 | 8 | import json
|
9 | 9 | import os
|
10 |
| -from typing import Callable, Awaitable, Sequence, Union, cast, Any, overload |
| 10 | +from typing import Any, Awaitable, Callable, Optional, Sequence, Union, cast, overload |
11 | 11 | from uuid import uuid4
|
12 | 12 | from weakref import WeakSet
|
13 | 13 |
|
14 |
| -from ipywidgets.widgets.widget import ( |
15 |
| - Widget, |
16 |
| - _remove_buffers, |
17 |
| -) # pyright: reportMissingTypeStubs=false, reportUnknownVariableType=false |
18 |
| -from ipywidgets._version import __protocol_version__ |
19 |
| - |
20 |
| -from htmltools import tags, Tag, TagList, css |
| 14 | +from htmltools import Tag, TagList, css, tags |
21 | 15 | from htmltools._util import _package_dir
|
22 |
| -from shiny import event, reactive |
| 16 | +from ipywidgets._version import ( |
| 17 | + __protocol_version__, # pyright: ignore[reportUnknownVariableType] |
| 18 | +) |
23 | 19 |
|
| 20 | +from ipywidgets.widgets.widget import ( |
| 21 | + Widget, |
| 22 | + _remove_buffers, # pyright: ignore[reportUnknownVariableType, reportGeneralTypeIssues] |
| 23 | +) |
| 24 | +from shiny import Session, event, reactive |
| 25 | +from shiny._utils import run_coro_sync, wrap_async |
24 | 26 | from shiny.http_staticfiles import StaticFiles
|
25 |
| -from shiny.session import get_current_session, require_active_session |
26 | 27 | from shiny.render import RenderFunction, RenderFunctionAsync
|
27 |
| -from shiny._utils import run_coro_sync, wrap_async |
| 28 | +from shiny.session import get_current_session, require_active_session |
28 | 29 |
|
29 |
| -from ._dependencies import * |
30 |
| -from ._comm import ShinyComm, ShinyCommManager, BufferType |
| 30 | +from ._comm import BufferType, ShinyComm, ShinyCommManager |
| 31 | +from ._dependencies import ( |
| 32 | + libembed_dependency, |
| 33 | + output_binding_dependency, |
| 34 | + require_dependency, |
| 35 | + widget_pkg, |
| 36 | +) |
31 | 37 |
|
32 | 38 |
|
33 | 39 | def output_widget(
|
|
0 commit comments