pulumi/changelog/pending
Will Jones fbe675aeba
Type functions decorated by `@pulumi.getter` (#15865)
This commit strengthens the type of the `@pulumi.getter` decorator so
that tools like Pyright infer the type of the decorated function
correctly. Prior to this, decorated properties could be inferred as
having the type `Any`. This is particularly troublesome when using
methods such as `apply`:

```python
x = random.RandomString("x", ...)

y = x.result.apply(lambda value: f"y-{value}")
```

Here, `x.result` having the type `Any` means that `value` will end up
being `Unknown`, providing no useful type information inside the lambda.
With this commit, `result` will correctly be inferred as having the type
`Output[str]`, and thus `value` will be typed as `str`. Fixes #12557.
2024-04-05 15:14:40 +00:00
..
20240324--sdkgen-dotnet-go--fixes-sdk-generation-when-referencing-shared-types-in-config-variables.yaml [sdk-gen, dotnet/go] Fixes SDK-generation when referencing shared types in config variables (#15772) 2024-03-28 17:14:47 +00:00
20240326--sdk-python--adds-typechecker-runtime-option-to-the-python-language-host.yaml Add 'typechecker' option to python runtime (#15725) 2024-03-28 10:41:22 +00:00
20240327--docs--implement-java-constructor-syntax-examples.yaml [docs] Implement Java constructor syntax examples (#15805) 2024-03-28 00:03:58 +00:00
20240329--sdk-nodejs--update-builtin-module-list-for-function-serialization.yaml Update builtin module list for function serialization (#15830) 2024-04-02 08:28:18 +00:00
20240402--sdk-nodejs--set-package-json-engines-to-node-18.yaml Add missing changelog for #15816 (#15845) 2024-04-02 08:28:33 +00:00
20240403--auto-go--avoid-flakyness-when-reading-the-event-log-from-pulumi-commands.yaml avoid racyness from the polling library (#15856) 2024-04-03 19:07:22 +00:00
20240403--cli--support-always-fully-qualifying-stack-names-in-cli-output.yaml Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
20240404--auto--tolerate-missing-stack-and-bookkeeping-files-in-programtest.yaml Allow missing stack config and bookkeeping files (#15863) 2024-04-05 11:57:00 +00:00
20240405--sdk-python--improve-types-of-getters-in-python-sdk.yaml Type functions decorated by `@pulumi.getter` (#15865) 2024-04-05 15:14:40 +00:00