Skip to content

Commit

Permalink
Started pydantic v2 adoption
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Nov 20, 2023
1 parent 4d477bb commit d15a51b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ greenlet = "^2.0.1"
inflection = "^0.5.1"
pandas = "^1.2.4"
prefect = "^2.7.3"
pydantic = "^1.10.2"
pydantic = ">2"
pytest-asyncio = "^0.20.2"
pytest-cases = "^3.6.13"
requests = "^2.25.1"
Expand Down
3 changes: 2 additions & 1 deletion src/omnipy/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

# from orjson import orjson
from pydantic import Field, PrivateAttr, ValidationError
from pydantic.fields import Undefined
# from pydantic.fields import Undefined
from pydantic.generics import GenericModel
from pydantic.utils import lenient_issubclass

from omnipy.data.model import generate_qualname, Model

ModelT = TypeVar('ModelT', bound=Model)
Undefined = object()
DATA_KEY = 'data'

# def orjson_dumps(v, *, default):
Expand Down

0 comments on commit d15a51b

Please sign in to comment.