pulumi/sdk/python/lib
Julien 7cc9c40eba
Fix merging InvokeOptions.version (#17750)
`InvokeOptions.version` was defaulting to the empty string `""` and not
`None`, see
1a97d95583/sdk/python/lib/pulumi/invoke.py (L57)

While working on https://github.com/pulumi/pulumi/issues/17749 I noticed
that the merge function was not expecting the empty string, and clearing
out the version on merge when it probably shouldn't.

Since this is typed as `Optional[str]`, code that uses this value
already has to deal with `None`, and we can update it to default to
`None` instead.

---------

Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com>
2024-11-15 13:22:22 +00:00
..
pulumi Fix merging InvokeOptions.version (#17750) 2024-11-15 13:22:22 +00:00
test Fix merging InvokeOptions.version (#17750) 2024-11-15 13:22:22 +00:00
test_types Fix Pyright type checking of "StackReference#outputs" (#16957) 2024-08-14 05:14:23 +00:00
test_with_mocks [sdk/{nodejs,python}] Fix errors when testing remote components with mocks (#8053) 2021-09-24 06:08:13 -07:00
setup.py Freeze v3.139.0 (#17772) 2024-11-15 04:17:01 +00:00