Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating python dynamic provider types for inputs to Dict[str, Any] #16102

Merged
merged 3 commits into from
May 2, 2024

Conversation

rshade
Copy link
Contributor

@rshade rshade commented May 2, 2024

Description

Updating python dynamic provider types for inputs to Dict[str, Any], from Any. I also added a Union so it was backward compatible, and doesn't immediately throw type errors for users.

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
  • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@rshade rshade requested a review from a team as a code owner May 2, 2024 13:27
@pulumi-bot
Copy link
Contributor

pulumi-bot commented May 2, 2024

Changelog

[uncommitted] (2024-05-02)

Features

  • [sdk/python] Update python dynamic provider types for inputs to Dict[str, Any], from Any
    #16102

Copy link
Collaborator

@tgummerer tgummerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the transition plan here? Will just adding this give users any additional warnings? If not, would we be better off just making the transition straight to typing this as Dict[str, Any], since users won't see any warnings with this change, so they wouldn't necessarily make any updates?

rshade and others added 2 commits May 2, 2024 10:06
Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com>
Copy link
Member

@Frassle Frassle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, technically a break change but if anyone was using this as anything but a dict they had issues already.

@Frassle Frassle added this pull request to the merge queue May 2, 2024
Merged via the queue into master with commit 03712a1 May 2, 2024
49 checks passed
@Frassle Frassle deleted the rshade/typing-dynamic-provider branch May 2, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants