# PR #23977 完整报告

- 仓库：`sgl-project/sglang`
- 标题：docs: update contribution guide with coding style guidelines
- 合并时间：2026-04-29 10:51
- 原文链接：http://prhub.com.cn/sgl-project/sglang/pull/23977

---

## 执行摘要

该 PR 对贡献指南进行了两处细微修订：明确运行时检查结果应缓存在 `__init__` 中，并新增了核心数据结构和工具函数在文件中的位置约定。这是一次纯文档更新，无代码变更。

## 功能与动机

为贡献者提供更精确的编码规范，减少 review 中的重复指导，推动代码风格一致性。

## 实现拆解

- **文件：**`docs/developer_guide/contribution_guide.md`
 1. 将『Please cache the result as a single boolean value whenever possible.』改为『Please cache the result as a single boolean value in `__init__` whenever possible.』，明确了缓存位置。
 2. 新增一条：『In a file, put core data structures at the top of the file. Put utility functions at the bottom of the file.』

## 风险与影响

无风险，仅影响文档读者。

## 关联脉络

无相关 PR 或 issue。