Automatically and lazily generate three versions of your pydantic models: one with Extra.forbid, one with Extra.ignore, and one with all fields optional
Any attempt to import DualBaseModel into application code results in:
testpd.py", line 3, in <module>
from pydantic_duality import DualBaseModel
File "site-packages/pydantic_duality/__init__.py", line 22, in <module>
from pydantic.main import ModelMetaclass
ImportError: cannot import name 'ModelMetaclass' from 'pydantic.main'
Any attempt to import
DualBaseModel
into application code results in:Using: