Skip to content

Commit

Permalink
Updates pydantic config setting to use proper settings approach
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbenizzy committed Dec 10, 2024
1 parent edcf1ab commit bd72087
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integrations/test_burr_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pydantic
import pytest
from pydantic import BaseModel, EmailStr, Field
from pydantic import BaseModel, ConfigDict, EmailStr, Field
from pydantic.fields import FieldInfo

from burr.core import expr
Expand Down Expand Up @@ -110,8 +110,7 @@ class MyModelWithConfig(pydantic.BaseModel):
foo: int
arbitrary: Arbitrary

class Config:
arbitrary_types_allowed = True
model_config = ConfigDict(arbitrary_types_allowed=True)

SubsetModel = subset_model(MyModelWithConfig, ["foo", "bar"], [], "Subset")
assert SubsetModel.__name__ == "MyModelWithConfigSubset"
Expand Down

0 comments on commit bd72087

Please sign in to comment.