diff --git a/moto/utilities/id_generator.py b/moto/utilities/id_generator.py index 22aa58c90d22..be84eaeedfaf 100644 --- a/moto/utilities/id_generator.py +++ b/moto/utilities/id_generator.py @@ -100,7 +100,9 @@ def get_id_from_tags(id_source_context: IdSourceContext) -> Union[str, None]: return None - def find_id_from_sources(self, id_source_context: IdSourceContext) -> Union[str, None]: + def find_id_from_sources( + self, id_source_context: IdSourceContext + ) -> Union[str, None]: existing_ids = id_source_context.get("existing_ids") or [] for id_source in self._id_sources: if found_id := id_source(id_source_context):