-
Notifications
You must be signed in to change notification settings - Fork 438
Closed
Labels
typingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Description
Use case
This is the same issue as noted in #280. Looks like the following files are missing the conditionals put in which is causing issues, for me at least, with some Lambda scripts:
- aws_lambda_powertools/event_handler/middlewares/base.py
- aws_lambda_powertools/metrics/provider/cloudwatch_emf/types.py
- aws_lambda_powertools/metrics/types.py
- aws_lambda_powertools/utilities/batch/types.py
- aws_lambda_powertools/utilities/parameters/ssm.py
- aws_lambda_powertools/utilities/parameters/types.py
- aws_lambda_powertools/utilities/streaming/s3_object.py
Solution/User Experience
Same as previous feat. Add the conditionals around the import for typing_extensions
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
typingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Type
Projects
Status
Shipped