Skip to content

Conversation

aahung
Copy link
Contributor

@aahung aahung commented Dec 16, 2022

Issue #, if available

Description of changes

Description of how you validated changes

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aahung aahung requested a review from a team as a code owner December 16, 2022 22:46
@aahung aahung enabled auto-merge (squash) December 16, 2022 22:46
@aahung aahung force-pushed the beautify-property-type-expected-type branch from 735fe9f to de37b84 Compare December 16, 2022 22:50
Copy link
Contributor

@GavinZZ GavinZZ 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 benefit of this?

@aahung
Copy link
Contributor Author

aahung commented Dec 16, 2022

What's the benefit of this?

so we don't have to pass expected_type = xxx maually

Copy link
Contributor

@GavinZZ GavinZZ left a comment

Choose a reason for hiding this comment

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

Nice

@hoffa
Copy link
Contributor

hoffa commented Dec 16, 2022

What's the benefit of this?

Related to previous PR that added PropertyType.optional_dict(). Which is confusing since technically a property could be both required and Optional; optional_dict isn't Optional[dict].

@aahung aahung merged commit 0a08359 into aws:develop Dec 16, 2022
@aahung aahung deleted the beautify-property-type-expected-type branch December 16, 2022 23:19
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.

4 participants