pulumi/sdk
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
..
go Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
nodejs Update builtin module list for function serialization (#15830) 2024-04-02 08:28:18 +00:00
proto/go Use the local artifacts, not released artifacts in conformance tests (#15777) 2024-03-26 13:10:34 +00:00
python Type functions decorated by `@pulumi.getter` (#15865) 2024-04-05 15:14:40 +00:00
.version Freeze v3.112.0 (#15799) 2024-03-28 00:10:27 +00:00
README.md Cleanup sdk/README.md 2023-01-03 17:12:12 -05:00
go.mod automation: only read complete lines before trying to deserialize (#15778) 2024-03-26 14:32:56 +00:00
go.sum automation: only read complete lines before trying to deserialize (#15778) 2024-03-26 14:32:56 +00:00
version.go Move .version to /sdk and embed it (#15185) 2024-01-19 14:11:17 +00:00

README.md

Pulumi Language SDKs

This directory contains Pulumi SDKs for the following languages:

See the respective READMEs for information about installing and using these libraries.

The language providers work by implementing gRPC interfaces defined in the top level directory proto.