Use Union

This commit is contained in:
clydebarrow 2024-05-13 11:22:55 +10:00
parent 6c50ca76ef
commit 98ca9fb800
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ async def templatable(
value: Any,
args: list[tuple[SafeExpType, str]],
output_type: Optional[SafeExpType],
to_exp: Callable | dict = None,
to_exp: Union[Callable, dict] = None,
):
"""Generate code for a templatable config option.