diff --git a/shiny/render/_display.py b/shiny/render/_display.py index 593cdda4d..3922821a5 100644 --- a/shiny/render/_display.py +++ b/shiny/render/_display.py @@ -94,7 +94,7 @@ async def render(self) -> JsonifiableDict | None: ret = sync_value_fn() if ret is not None: raise RuntimeError( - "@render.display functions should not return values. (`None` is allowed)." + "@render.display functions should not return values. Instead, @render.display dynamically renders every printable line within the function body. (`None` is a valid return value.)" ) finally: sys.displayhook = orig_displayhook