Comments (3)
From internal discussion, sounds like we'll likely want to add overloads up to a certain number of arguments to better model this for type checkers.
from pulumi.
I don't think this is possible, because Output returns a list, but you can't have something like list[T1, T2, T3]
. List assumes all elements are of the same type.
To have different types we need to return a tuple, but I think that would be a breaking change.
Here's an example of typing it using tuple
return pyright playground
from pulumi.
Our best option might be to weaken the all
types to better match reality d0ce289
from pulumi.
Related Issues (20)
- Consider failing Config.require if the config value is a secret HOT 1
- Pulumi convert mishandles array conversion (Go SDK, Java SDK)
- Pulumi convert missing import statement for Deployment class (Java SDK)
- Pulumi convert mishandles eager stack outputs (Go SDK, Java SDK)
- IgnoreChanges works differently on refresh than it does on update HOT 4
- Getting vague error on `pulumi up` HOT 10
- Pulumi does not respect `dependsOn` for `.get` operations HOT 1
- Workflow failure: Download Pulumi Cron HOT 3
- Pulumi Import throught "Import" resource option - override "match" failures HOT 1
- Stack failure during Pulumi update investigation initiated HOT 2
- Pulumi refresh triggers a diff for resources imported with .get HOT 2
- CLI panic in processIgnoreChanges HOT 2
- Allow setting pulumi CLI flags via environment variables HOT 4
- Remove MyPy workaround for TypedDicts
- Potentially flaky test secrets/cloud TestAWSCloudManager_AssumedRole failing in CI
- Saved plan with automation API results in error decrypting secret value HOT 6
- Diagnostics is not fully exposing reference/stack HOT 1
- Difficult to set backend URL on Windows HOT 1
- switching mfa_delete Flag in aws.s3.Bucket completely blocked further updates to the S3 bucket HOT 1
- Using tencentcloud COS as backend state donot work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi.