conditional: fix value type (#49882)

This commit is contained in:
Harmen Stoppels
2025-04-04 15:31:44 +02:00
committed by GitHub
parent 522fa9dc62
commit 3ea92b1983

View File

@@ -610,7 +610,7 @@ def _execute_patch(
return _execute_patch
def conditional(*values: List[Any], when: Optional[WhenType] = None):
def conditional(*values: Union[str, bool], when: Optional[WhenType] = None):
"""Conditional values that can be used in variant declarations."""
# _make_when_spec returns None when the condition is statically false.
when = _make_when_spec(when)