From 325a630c7cfc640b31cccb400738101e26fe0ab0 Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 8 Jan 2024 15:54:58 -0600 Subject: [PATCH] Close #981. Express version of panel_conditional() should treat condition argument as a positional arg --- shiny/express/ui/_cm_components.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/shiny/express/ui/_cm_components.py b/shiny/express/ui/_cm_components.py index 366de44aa..0fe85fee1 100644 --- a/shiny/express/ui/_cm_components.py +++ b/shiny/express/ui/_cm_components.py @@ -1217,7 +1217,6 @@ def panel_well(**kwargs: TagAttrValue) -> RecallContextManager[Tag]: def panel_conditional( - *, condition: str, **kwargs: TagAttrValue, ) -> RecallContextManager[Tag]: @@ -1255,10 +1254,8 @@ def panel_conditional( """ return RecallContextManager( ui.panel_conditional, - kwargs=dict( - condition=condition, - **kwargs, - ), + args=(condition,), + kwargs=dict(**kwargs), )