Hi, what is the best way to convert a string into ...
# python
a
Hi, what is the best way to convert a string into an Output? I can use
pulumi.Output.concat()
, but it just feels wrong.
l
Hey Henrique -- I think https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Output.from_input is probably the way to go here. It can accept plain values as well as outputs. That said, can I ask what your use case is? Anywhere that expects an output should in theory take a plain value too 🤔
a
Thanks for this. My use case was just trying to make Mypy happy, but it turns out - of course - that it was my own error somewhere else. 🤦‍♀️
l
All good!