Skip to content

Commit

Permalink
fixing EmailStr import in README examples (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 authored Mar 26, 2024
1 parent 076315f commit 78e9a39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Check out this example of modeling customer data with Redis OM. First, we create
import datetime
from typing import Optional

from pydantic import EmailStr
from pydantic.v1 import EmailStr

from redis_om import HashModel

Expand All @@ -113,7 +113,7 @@ Now that we have a `Customer` model, let's use it to save customer data to Redis
import datetime
from typing import Optional

from pydantic import EmailStr
from pydantic.v1 import EmailStr

from redis_om import HashModel

Expand Down Expand Up @@ -168,7 +168,7 @@ For example, because we used the `EmailStr` type for the `email` field, we'll ge
import datetime
from typing import Optional

from pydantic import EmailStr, ValidationError
from pydantic.v1 import EmailStr, ValidationError

from redis_om import HashModel

Expand Down Expand Up @@ -222,7 +222,7 @@ To show how this works, we'll make a small change to the `Customer` model we def
import datetime
from typing import Optional

from pydantic import EmailStr
from pydantic.v1 import EmailStr

from redis_om import (
Field,
Expand Down

0 comments on commit 78e9a39

Please sign in to comment.