Skip to content

V2: dataclasses #4670

@samuelcolvin

Description

@samuelcolvin

dataclass validation should get MASSIVELY easier and more performant since we have the arguments validator in pydantic-core which means we can do validation before constructing the dataclass. Lots of examples in the docs here.

I think we should remove all the __post_init_post_parse__ shit, and just use validation functions and the standard stuff offered by dataclasses.

@PrettyWood as the master of dataclasses, would be willing to work on this? If not, I quite understand, please remove yourself as assignee and hopefully someone else can take over.

Either way, I'd love your insights on what we should do.

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions