-
Notifications
You must be signed in to change notification settings - Fork 421
Static typing: utilities.parameters.get_parameter #3507
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
Comments
Looking at this now |
@troyswanson I need a little more help here. Is this on VSCode? I pasted your code into a file but I can't generate an error message. Can you please give me more information about the setup? |
Thank you for the update and for testing the issue locally! It sounds like you've pinpointed the challenge with the SSM provider. However I'm not seeing a simple way of implementing the override, mainly due to it being very specific to the SSM provider. If you have a clear direction in mind for a solution, we'd greatly appreciate your contribution. Please feel free to open a pull request, and we can collaborate to refine the implementation and get it ready for merging. Looking forward to seeing your approach and working together on this! |
|
Static type checker used
pyright/pylance
AWS Lambda function runtime
3.10
Powertools for AWS Lambda (Python) version
2.29.1
Static type checker info
Code snippet
Possible Solution
I believe this is happening because the
get_parameter
function can be configured via thetransform
argument to convert the param into a dictionary (if the response if a JSON string) or bytes (if the response is a base64 encoded string).The type annotation for the function return can be overloaded depending on what value is used for that argument.
The text was updated successfully, but these errors were encountered: