diff --git a/shiny/express/ui/_hold.py b/shiny/express/ui/_hold.py index 9f98b39e5..46bae144f 100644 --- a/shiny/express/ui/_hold.py +++ b/shiny/express/ui/_hold.py @@ -6,7 +6,6 @@ from htmltools import wrap_displayhook_handler -from ... import ui from ..._typing_extensions import ParamSpec __all__ = ("hold",) @@ -45,9 +44,9 @@ def hold() -> HoldContextManager: class HoldContextManager: def __init__(self): - self.content = ui.TagList() + self.content: list[object] = list() - def __enter__(self) -> ui.TagList: + def __enter__(self) -> list[object]: self.prev_displayhook = sys.displayhook sys.displayhook = wrap_displayhook_handler( self.content.append # pyright: ignore[reportArgumentType]