Skip to content

Remove Pydantic RootModels from types module #1737

Closed

Description

@maxisbey

Summary

Remove the use of Pydantic RootModel wrappers in the types module where they add complexity without clear benefit.

Motivation

  • RootModels add indirection that makes the types harder to work with
  • Many of these could be replaced with simpler type aliases or direct types
  • The types should ideally be generated from the spec, and RootModels complicate that path

Related

  • Part of broader types.py restructuring for v2

AI Disclaimer

Activity

  1. added
    v2
    enhancement
    P1
    breaking change
    on Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1breaking changeenhancementv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions