Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Release 4.6.0 breaks Pydantic 1.9.2 #183

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

Closed
tungalbert99 opened this issue May 23, 2023 · 3 comments
Closed

Release 4.6.0 breaks Pydantic 1.9.2 #183

tungalbert99 opened this issue May 23, 2023 · 3 comments

Comments

@tungalbert99
Copy link

tungalbert99 commented May 23, 2023

Our dependencies were updated to the new 4.6.0 automatically and it breaks Pydantic v1.9.2 with Python 3.9.16. The previous version 4.5.0 did not have this issue. The stack trace is listed below. Is this a legitimate issue on our end or a bug in the new release?

pydantic/main.py:205: in pydantic.main.ModelMetaclass.__new__
    ???
pydantic/fields.py:491: in pydantic.fields.ModelField.infer
    ???
pydantic/fields.py:421: in pydantic.fields.ModelField.__init__
    ???
pydantic/fields.py:537: in pydantic.fields.ModelField.prepare
    ???
pydantic/fields.py:697: in pydantic.fields.ModelField._type_analysis
    ???
pydantic/fields.py:781: in pydantic.fields.ModelField._create_sub_type
    ???
pydantic/fields.py:421: in pydantic.fields.ModelField.__init__
    ???
pydantic/fields.py:537: in pydantic.fields.ModelField.prepare
    ???
pydantic/fields.py:641: in pydantic.fields.ModelField._type_analysis
    ???
../.pyenv/versions/3.9.16/lib/python3.9/typing.py:852: in __subclasscheck__
    return issubclass(cls, self.__origin__)
E   TypeError: issubclass() arg 1 must be a class
@AlexWaygood
Copy link
Member

Duplicate of pydantic/pydantic#5821, #179, #180 and #182.

@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
@AlexWaygood
Copy link
Member

The bug is in pydantic, and a fix has already been merged for the bug: pydantic/pydantic#5826. We're just waiting for a new pydantic release that contains the fix.

@AlexWaygood
Copy link
Member

pydantic v1.10.8 can now be installed from PyPI, and contains the fix.

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