Skip to content

[CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs#77974

Merged
SigureMo merged 2 commits intoPaddlePaddle:developfrom
ShigureNyako:docs/migrate-docstring-highlight-markers-111
Feb 19, 2026
Merged

[CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs#77974
SigureMo merged 2 commits intoPaddlePaddle:developfrom
ShigureNyako:docs/migrate-docstring-highlight-markers-111

Conversation

@ShigureNyako
Copy link
Contributor

PR Category

User Experience

PR Types

Docs

Description

This PR migrates docstring code-block markers from python to pycon for interactive examples in the following files:

  • python/paddle/framework/io.py
  • python/paddle/framework/random.py
  • python/paddle/utils/dlpack.py

Also ran ruff format on touched files.

Related PRs:

是否引起精度变化

@paddle-bot
Copy link

paddle-bot bot commented Feb 19, 2026

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Feb 19, 2026
@ShigureNyako
Copy link
Contributor Author

@SigureMo 自查完成:本 PR 将以下 3 个文件的 docstring 示例标记从 code-block:: python 迁移为 code-block:: pycon,并已执行 ruff format

  • python/paddle/framework/io.py
  • python/paddle/framework/random.py
  • python/paddle/utils/dlpack.py

仅文档示例标记调整,无运行逻辑改动。辛苦 review 🙏

@ShigureNyako
Copy link
Contributor Author

已处理本轮 3 条 review 建议:补齐 pycon 多行示例 trailing comma,完成格式化并推送更新(commit: 5fa74e2)。@SigureMo 麻烦复查,感谢。

@SigureMo SigureMo changed the title [CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs [CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs Feb 19, 2026
@SigureMo SigureMo merged commit a6cb200 into PaddlePaddle:develop Feb 19, 2026
161 of 188 checks passed
@SigureMo SigureMo deleted the docs/migrate-docstring-highlight-markers-111 branch February 19, 2026 06:07
@SigureMo SigureMo changed the title [CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs [CodeStyle][DocFormat][111] Use pycon marker in framework/utils docs Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers skip-ci: all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments