Open rtandy opened 5 days ago
Thanks for opening your first issue here! We'll come back to you as soon as we can. In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Hello @rtandy! Thanks for opening this issue, although we don't fully support typing checking and some utilities are very hard to resolve without major refactoring, this topic is something we are always looking to improve here at Powertools.
Do you want to work in a PR to fix this? I can help with that if you need any help.
Thanks
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