diff --git a/src/maggma/utils.py b/src/maggma/utils.py index c7e3c4671..6f2b8fe36 100644 --- a/src/maggma/utils.py +++ b/src/maggma/utils.py @@ -7,7 +7,7 @@ import uuid from datetime import datetime, timedelta from importlib import import_module -from typing import Dict, Iterable, Optional, Union +from typing import Dict, Iterable, Optional, Union, Set from bson.json_util import ObjectId from dateutil import parser @@ -264,7 +264,7 @@ def emit(self, record): maggma_record["build_id"] = self.build_id self.reporting_store.update(maggma_record, key="_id") -def get_flat_models_from_model(model: BaseModel, known_models: set[BaseModel] = set()): +def get_flat_models_from_model(model: BaseModel, known_models: Set[BaseModel] = set()): """Get all sub-models from a pydantic model. Args: