Skip to content

[CodeStyle][DocFormat][104] Use pycon marker in hapi/decomposition/vision docs#77966

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

[CodeStyle][DocFormat][104] Use pycon marker in hapi/decomposition/vision docs#77966
SigureMo merged 3 commits intoPaddlePaddle:developfrom
ShigureNyako:docs/migrate-docstring-highlight-markers-104

Conversation

@ShigureNyako
Copy link
Contributor

@ShigureNyako ShigureNyako commented Feb 18, 2026

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/hapi/hub.py
  • python/paddle/decomposition/register.py
  • python/paddle/vision/ops.py

Also ran ruff format on touched files.

Related PRs:

是否引起精度变化

@paddle-bot
Copy link

paddle-bot bot commented Feb 18, 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 18, 2026
@ShigureNyako
Copy link
Contributor Author

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

  • python/paddle/hapi/hub.py
  • python/paddle/decomposition/register.py
  • python/paddle/vision/ops.py

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

@SigureMo
Copy link
Member

这次 template 都不对了……

另外,咋又只改了 3 个文件啊,后面多改点啊

@ShigureNyako
Copy link
Contributor Author

@SigureMo 已完成本轮修复:

  1. 按 review 建议在 python/paddle/vision/ops.py 两处 pycon 多行调用补上了末尾逗号;
  2. 已执行 ruff format 并推送提交:d7b68d08ce
  3. PR 描述已按最新模板调整,并补齐 是否引起精度变化 字段。

辛苦再看一眼 🙏

@ShigureNyako
Copy link
Contributor Author

/re-run all-failed

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static check timeout 了,可以适当提升下 timeout,参考其他示例代码

@ShigureNyako
Copy link
Contributor Author

@SigureMo 这条 PR 之前提到的 review 点我已逐条处理并清理线程,当前未见未解决 review thread。辛苦复查一下,如果还有遗漏我会马上跟进 🙏

@SigureMo
Copy link
Member

?CI 挂了啊!

@ShigureNyako
Copy link
Contributor Author

@SigureMo 已根据你说的 static-check timeout 建议处理:

  • python/paddle/hapi/hub.pypaddle.hub.load_state_dict_from_url 示例中补了 # doctest: +TIMEOUT(60)
  • 提交:d41c9854dd

这次是直接针对超时样例做了 timeout 提升,麻烦复查。若还有新的可复现失败我继续马上修。

/re-run all-failed

@SigureMo SigureMo merged commit 7591433 into PaddlePaddle:develop Feb 19, 2026
203 of 218 checks passed
@SigureMo SigureMo deleted the docs/migrate-docstring-highlight-markers-104 branch February 19, 2026 07:48
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