Skip to content

Tech debt: BasePartialBatchProcessor response() and process_partial_response() should have the same response typing #3020

Closed
@adriantomas

Description

@adriantomas

Why is this needed?

This method https://github.com/aws-powertools/powertools-lambda-python/blob/develop/aws_lambda_powertools/utilities/batch/base.py#L256 and https://github.com/aws-powertools/powertools-lambda-python/blob/024c3f2ed8858643a2d303e5c3928aa58e168c7c/aws_lambda_powertools/utilities/batch/decorators.py#L128C16-L128C16

Should have the same response typing

class PartialItemFailureResponse(TypedDict):

So that users can easily guess that using one method or another produces the same output.

Which area does this relate to?

Static typing

Suggestion

I can submit a PR with the changes.

Acknowledgment

Metadata

Metadata

Labels

batchBatch processing utilitytech-debtTechnical Debt tasks

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions