[CodeStyle][Xdoctest][254-256] Fix example code(paddle.text.Imdb,paddle.text.Movielens,paddle.text.UCIHousing)#76926
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
| .. code-block:: python | ||
| .. code-block:: pycon | ||
|
|
||
| >>> # doctest: +TIMEOUT(75) |
There was a problem hiding this comment.
为什么把这些 +TIMEOUT(75) 删了,你可以看看 static-check 流水线的日志,删掉之后会超时,issue 里面有 书写规范,下同,这是给 ci 看的
There was a problem hiding this comment.
已恢复>>> # doctest: +TIMEOUT(75)
感谢提醒!之前因本地 xdoctest 解析警告误删了UserWarning: Unknown directive: '+TIMEOUT'
|
@Z784555 Thanks for your contribution! You will receive a beautiful PaddlePaddle gift. Please provide your mailing address and phone number by filling out the following questionnaire before January 23th,2026. Looking forward to the future, we will walk further together in the world of open source! |
PR Category
User Experience
PR Types
Improvements
Description
修复以下 API 的示例代码,适配 xdoctest 自动测试:
修改后的示例代码已通过本地 xdoctest 验证,无运行报错,输出匹配。
Related links
@ooooo-create