Skip to content

Commit

Permalink
Remove id from render_widget_base.auto_output_ui (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Jan 18, 2024
1 parent 9ea804c commit 8d4323b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ setup_requires =
install_requires =
ipywidgets>=7.6.5
jupyter_core
shiny>=0.6.1.9004
shiny>=0.6.1.9005
python-dateutil>=2.8.2
# Needed because of https://github.com/python/importlib_metadata/issues/411
importlib-metadata>=4.8.3,<5; python_version < "3.8"
Expand Down
7 changes: 4 additions & 3 deletions shinywidgets/_render_widget_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
"""
T = TypeVar("T", bound=object)


class render_widget_base(Renderer[ValueT], Generic[ValueT, WidgetT]):
""" """

def auto_output_ui(self, id: str) -> Tag:
def auto_output_ui(self) -> Tag:
return output_widget(
id,
self.output_id,
width=self.width,
height=self.height,
fill=self.fill,
Expand Down Expand Up @@ -201,7 +202,7 @@ def set_layout_defaults(widget: Widget) -> Tuple[Widget, bool]:
warnings.warn(
"Consider using shiny.ui.layout_column_wrap() instead of alt.concat() "
"for multi-column layout (the latter doesn't support filling layout).",
stacklevel=2
stacklevel=2,
)
else:
UndefinedType = alt.utils.schemapi.UndefinedType # type: ignore
Expand Down

0 comments on commit 8d4323b

Please sign in to comment.