Skip to content

Commit

Permalink
fix pydantic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalef committed Oct 5, 2023
1 parent 237cb88 commit 53b8d10
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions zep_python/user/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from datetime import datetime
from typing import Any, Dict, Optional
from typing import TYPE_CHECKING, Any, Dict, Optional
from uuid import UUID

from pydantic import BaseModel
if TYPE_CHECKING:
from pydantic import BaseModel
else:
try:
from pydantic.v1 import BaseModel
except ImportError:
from pydantic import BaseModel


class User(BaseModel):
Expand Down

0 comments on commit 53b8d10

Please sign in to comment.