Skip to content

Commit 8d4323b

Browse files
authored
Remove id from render_widget_base.auto_output_ui (#130)
1 parent 9ea804c commit 8d4323b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ setup_requires =
3434
install_requires =
3535
ipywidgets>=7.6.5
3636
jupyter_core
37-
shiny>=0.6.1.9004
37+
shiny>=0.6.1.9005
3838
python-dateutil>=2.8.2
3939
# Needed because of https://github.com/python/importlib_metadata/issues/411
4040
importlib-metadata>=4.8.3,<5; python_version < "3.8"

shinywidgets/_render_widget_base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@
3838
"""
3939
T = TypeVar("T", bound=object)
4040

41+
4142
class render_widget_base(Renderer[ValueT], Generic[ValueT, WidgetT]):
4243
""" """
4344

44-
def auto_output_ui(self, id: str) -> Tag:
45+
def auto_output_ui(self) -> Tag:
4546
return output_widget(
46-
id,
47+
self.output_id,
4748
width=self.width,
4849
height=self.height,
4950
fill=self.fill,
@@ -201,7 +202,7 @@ def set_layout_defaults(widget: Widget) -> Tuple[Widget, bool]:
201202
warnings.warn(
202203
"Consider using shiny.ui.layout_column_wrap() instead of alt.concat() "
203204
"for multi-column layout (the latter doesn't support filling layout).",
204-
stacklevel=2
205+
stacklevel=2,
205206
)
206207
else:
207208
UndefinedType = alt.utils.schemapi.UndefinedType # type: ignore

0 commit comments

Comments
 (0)