Skip to content

[Testing] Remove references of replace in favour of creating immutable objects #444

@dhegberg

Description

@dhegberg

Migration from aws/aws-durable-execution-sdk-python-testing#115


Let's remove anywhere we're using replace() in favour of instantiating a new instance of a given class. We want to enforce a consistent style of using immutable objects.

See https://github.com/aws/aws-durable-execution-sdk-python-testing/blob/main/src/aws_durable_execution_sdk_python_testing/model.py#L2448-L2461 for example.

Brought up in this PR: aws/aws-durable-execution-sdk-python-testing#95 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testing-sdkIssues related to the AWS Durable Execution Testing SDK

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions