-
Notifications
You must be signed in to change notification settings - Fork 146
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
Maintenance: Revisit return types of BaseProvider
#1172
Comments
EDIT: related PR from python powertools |
My understanding is that, whenever the user specifies a I don't have 100% confidence on this, but I think your assessment is correct, and the return type on the Python's function might be wrong. Looking at the docs section for this method, the type annotation seems to be # Retrieve a single secret
value: bytes = appconf_provider.get("my_conf") I think it's worth opening an issue on the Python's repo so that it can be looked at be fixed. If instead we both understood it wrong, then they can clarify what's the expected behavior :) |
The PR linked above addresses some of the first changes needed to support I have reopened this issue after merging them PR as there might be some additional refactoring needed after the discussion and implementation of |
|
Summary
BaseProvider
was the first base class implemented for the new Parameters utility.At the time, it was not yet known what each AWS SDK provider would return. For instance
DynamoDBProvider
might return different types thanSSMProvider
, so the types inBaseProvider
have been intentionally left generic.This issue serves to track the task that will have to be carried out after all providers have been implemented.
Why is this needed?
To enforce strong typing to the values returned by the utility, whenever possible.
Which area does this relate to?
Parameters
Solution
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: