You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched GitHub for a duplicate issue and I'm sure this is something new
I have searched Google & StackOverflow for a solution and couldn't find anything
I have read and followed the docs and still think this is a bug
I am confident that the issue is with pydantic (not my code, or another library in the ecosystem like FastAPI or mypy)
Description
Getting TypeError: cannot inherit non-frozen dataclass from a frozen one when trying to dynamically create pydantic dataclass from native dataclass, which is marked as frozen.
Note: Issue does not happen in any situation - for example, if class B did not have method abc, problem does not happen.
Initial Checks
Description
Getting
TypeError: cannot inherit non-frozen dataclass from a frozen one
when trying to dynamically create pydantic dataclass from native dataclass, which is marked as frozen.Note: Issue does not happen in any situation - for example, if class B did not have method
abc
, problem does not happen.Related to: #2557
Example Code
Python, Pydantic & OS Version
Affected Components
.dict()
and.json()
construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: