Skip to content

Commit

Permalink
Set type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Sep 22, 2023
1 parent 95bc61f commit 80195ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/maggma/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 80195ec

Please sign in to comment.