Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Pydantic 2 #14

Open
prescod opened this issue Jun 13, 2024 · 1 comment
Open

Incompatible with Pydantic 2 #14

prescod opened this issue Jun 13, 2024 · 1 comment

Comments

@prescod
Copy link

prescod commented Jun 13, 2024

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' 

Using:

pydantic                                 2.7.4
pydantic_core                            2.18.4
pydantic-duality                         1.2.0
pydantic-settings                        2.3.2
@zmievsa
Copy link
Owner

zmievsa commented Jun 13, 2024

Yup! I'm adding the compatibility soon but it's not there yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants