-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
CloudFormation: add types and restructure #8240
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
Conversation
|
||
|
||
# Type definition for func_details supplied to invoke_function and configure_resource_via_sdk | ||
FuncDetails = list[FuncDetailsValue] | FuncDetailsValue | Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't that be a dict[str, Union[FuncDetailsValue, Callable]]
? 🤔
str could even be a union of the literals "create", "delete" for now, but I don't think that's necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've added another type that's the result of get_deploy_templates
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
b28fd21
to
5206df7
Compare
5206df7
to
a93883d
Compare
Gain understanding by refactoring internals and add static types.
In particular, the
func_details
type was difficult to nail down.Remove
configure_resource_via_sdk
since it had two purposes. Instead, inline the two behaviours into