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
When creating a model with the dataclasses backport, the model doesn’t have the schema() method, but it’s still forbidden to create a model with this attribute name. Is this a desired behaviour?
card.__pydantic_model__.schema() should work, I'm not sure why it doesn't. PR welcome to fix that.
Regarding Field name "schema" shadows a BaseModel attribute; use a different field name with "alias='schema' that's harder to fix since the underlying model __pydantic_model__ is a normal pydantic model, so won't play nicely with schema as a field. Maybe we should change the error message, to make more sense in this context.
As mentioned before, perhaps all those methods should have had other names, but it's too late now.
When creating a model with the dataclasses backport, the model doesn’t have the
schema()
method, but it’s still forbidden to create a model with this attribute name. Is this a desired behaviour?The text was updated successfully, but these errors were encountered: