Static typing: overloads for SecretsProvider.get() #4622
Labels
help wanted
Could use a second pair of eyes/hands
typing
Static typing definition related issues (mypy, pyright, etc.)
Static type checker used
mypy (project's standard)
AWS Lambda function runtime
3.11
Powertools for AWS Lambda (Python) version
latest (2.39.1)
Static type checker info
parameters.get_secret()
has overloads to vary its return type based on thetransform
parameter. Would it be possible forBaseProvider.get()
to have the same overloads? For context, I am usingSecretsProvider
so that I can bring my own boto3 client.Also, looking at those existing overloads, are the
binary
andauto
cases backwards? It has:I would have expected
binary
would returnbytes
, andauto
would returnstr | dict | bytes
?Thank you for your work on Powertools!
Code snippet
Possible Solution
No response
The text was updated successfully, but these errors were encountered: