Skip to content

Commit

Permalink
Update pydantic>=1.10.14 (#1003)
Browse files Browse the repository at this point in the history
* Update pydantic>=1.10.14
Co-authored-by: mike0sv <[email protected]>
  • Loading branch information
emeli-dral authored Feb 22, 2024
1 parent c70302d commit d3cc3e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"scipy>=1.5.4",
"requests>=2.21.0",
"PyYAML>=5.1",
"pydantic<2",
"pydantic>=1.10.14",
"litestar>=2.5.1",
"typing-inspect>=0.9.0",
"uvicorn>=0.22.0",
Expand Down
3 changes: 3 additions & 0 deletions src/evidently/_pydantic_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from pydantic.v1 import BaseModel
from pydantic.v1 import Field
from pydantic.v1 import PrivateAttr
from pydantic.v1 import SecretStr
from pydantic.v1 import ValidationError
from pydantic.v1 import parse_obj_as
from pydantic.v1 import validator
Expand All @@ -37,6 +38,7 @@
from pydantic import BaseModel
from pydantic import Field
from pydantic import PrivateAttr
from pydantic import SecretStr
from pydantic import ValidationError
from pydantic import parse_obj_as
from pydantic import validator
Expand Down Expand Up @@ -64,6 +66,7 @@
"ValidationError",
"parse_obj_as",
"validator",
"SecretStr",
"SHAPE_DICT",
"SHAPE_LIST",
"SHAPE_SET",
Expand Down
2 changes: 1 addition & 1 deletion src/evidently/ui/security/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from typing import Optional

from litestar import Request
from pydantic import SecretStr

from evidently._pydantic_compat import SecretStr
from evidently.ui.security.config import SecurityConfig
from evidently.ui.security.service import SecurityService
from evidently.ui.security.service import User
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_pydantic_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Dict

import pytest
from pydantic import parse_obj_as

from evidently._pydantic_compat import parse_obj_as
from evidently.base_metric import Metric
from evidently.base_metric import MetricResult
from evidently.pydantic_utils import PolymorphicModel
Expand Down

0 comments on commit d3cc3e0

Please sign in to comment.