Skip to content

Pydantic V2 #91

@zyr17

Description

@zyr17

Upgrade to Pydantic V2 by following steps.

  • install pydantic 2.x, and include from pydantic.v1, so pydantic can be always up-to-date, and no need to maintain two environments when upgrading to v2.
  • wait until a better way to supprt duck-typing serialization of pydantic v2 is proposed by official. Otherwise too many inherit classes are subject to change, and current tests cannot find bugs on this problem.
  • performance evaluation between v1 and v2. Initial comparism results show that v2 spends about 2x time in initializing, but have extreamly high performance on output json data. Not sure the performance difference during simulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions