Skip to content

Remove references of replace in favour of creating immutable objects #115

@bchampp

Description

@bchampp

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: #95 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions