> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 4.0.0-rc8

**`(fix):`** 在非联合循环引用依赖上调用 `update_forward_refs` 的 Pydantic 模型现在会为当前成员传入 `localns`，这是 Pydantic V1 中的一个字段，在对象未完全重建的情况下为模型提供对象上下文。

## 4.0.0-rc7

**`(fix):`** 生成器现在再次遵循旧的 use\_str\_enums 标志，之前引入了一个回归，只有新标志 `enum_type` 被遵循。

## 4.0.0-rc6

**`(fix):`** Pydantic 模型现在会在非联合循环引用上调用 update forward refs。这可以防止在某些情况下类型通过联合自引用时出现运行时错误。