conditional: fix value type (#49882)
This commit is contained in:
parent
522fa9dc62
commit
3ea92b1983
@ -610,7 +610,7 @@ def _execute_patch(
|
|||||||
return _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."""
|
"""Conditional values that can be used in variant declarations."""
|
||||||
# _make_when_spec returns None when the condition is statically false.
|
# _make_when_spec returns None when the condition is statically false.
|
||||||
when = _make_when_spec(when)
|
when = _make_when_spec(when)
|
||||||
|
Loading…
Reference in New Issue
Block a user