(self, seed_input: Any)
| 49 | return random.choice(self.seed_pool) |
| 50 | |
| 51 | def mutate(self, seed_input: Any) -> List: |
| 52 | new_input = copy.deepcopy(seed_input) |
| 53 | |
| 54 | patience = MUTATE_BOUND_SIZE |
| 55 | while new_input == seed_input or patience == 0: |
| 56 | new_input = self.typed_mutate(new_input) |
| 57 | patience -= 1 |
| 58 | |
| 59 | return new_input |
| 60 | |
| 61 | ######################### |
| 62 | # Type-aware generation # |