Skip to content

Release 4.6.0 breaks Pydantic 1.9.2 #183

@tungalbert99

Description

@tungalbert99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions