pulumi/sdk
Justin Van Patten 9b0169be35
Fix pylint(no-member) when accessing resource.id (#4813)
Pylint currently reports `E1101: Instance of 'Bucket' has no 'id' member (no-member)` on lines in Pulumi Python programs like:

```python
pulumi.export('bucket_name', bucket.id)
```

Here's a description of this message from http://pylint-messages.wikidot.com/messages:e1101:

> Used when an object (variable, function, …) is accessed for a non-existent member.
>
> False positives: This message may report object members that are created dynamically, but exist at the time they are accessed.

This appears to be a false positive case: `id` isn't set in the constructor (it's set later in `register_resource`) and Pylint isn't able to figure this out statically. `urn` has the same problem. (Oddly, Pylint doesn't complain when accessing other resource output properties).

This change refactors `register_resource` so that `id` and `urn` can be assigned in the resource's constructor, so that Pylint can see it being assigned. The change also does the same with `read_resource`.
2020-06-12 12:41:56 -07:00
..
dotnet Add F# operators for InputUnion (#4699) 2020-05-26 14:18:56 +02:00
go Use appropriate types for go config methods (#4800) 2020-06-10 18:24:05 -07:00
nodejs Support publishing Python policy packs (#4644) 2020-05-22 15:01:15 -07:00
proto Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
python Fix pylint(no-member) when accessing resource.id (#4813) 2020-06-12 12:41:56 -07:00
go.mod Upgrade to Go 1.14.x (#4697) 2020-05-28 12:01:33 +01:00
go.sum Support publishing Python policy packs (#4644) 2020-05-22 15:01:15 -07:00
README.md Updating .NET references 2020-04-27 12:42:11 -07:00

Pulumi Language SDKs

This directory contains the Pulumi SDKs for all supported languages.

Please see the respective READMEs for information about installing and using these libraries:

The language providers work by implementing gRPC interfaces defined in proto/.