Skip to content

Commit

Permalink
Merge pull request #869 from materialsproject/bugfix/generic_model_re…
Browse files Browse the repository at this point in the history
…ference

Remove generic model reference
  • Loading branch information
Jason Munro authored Oct 9, 2023
2 parents 8546fed + a8cf989 commit 705718f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/maggma/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Generic, List, Optional, TypeVar

from pydantic import BaseModel, Field, validator
from pydantic.generics import GenericModel

from maggma import __version__

Expand Down Expand Up @@ -47,7 +46,7 @@ def from_traceback(cls, traceback):
pass


class Response(GenericModel, Generic[DataT]):
class Response(BaseModel, Generic[DataT]):
"""
A Generic API Response
"""
Expand Down

0 comments on commit 705718f

Please sign in to comment.