决定自定义泛型类的命运 docs 示例
作者: Viicos创建于 2026年9月16日更新于 2026年9月16日
标签documentationtopic-types support
从https://GitHub.com/pydantic/pydantic/pull/13821中注意到,如果子类型值无效,则https://pydantic.dev/docs/validation/latest/concepts/types/#处理-custom-generic-class中的例子不会增加。 这个例子似乎很长一段时间都是无效的. 我试图把这个残暴的例子完全删除, 因为谁想要处理复杂的核心方案以及运行时类型的表达操作. xref the https://GitHub.com/pydantic/pydantic/labels/topic-types%20支持关于提供更清洁的API的问题.
内容来源: pydantic/pydantic