Skip to content

Conversation

@ShigureNyako
Copy link
Contributor

This PR changes all remaining code-block:: python markers to code-block:: pycon in Python docstrings for better xdoctest compatibility.

This is part 3 of the code-block standardization work:

Changes

  • Changed 1782 occurrences of code-block:: python to code-block:: pycon across 339 files
  • Affected modules include: amp, audio, autograd, base, compat, cuda, dataset, device, distributed, distribution, fft, framework, geometric, hapi, incubate, io, jit, metric, nn, onnx, optimizer, pir, profiler, quantization, random, reader, regularizer, sparse, static, sysconfig, tensor, testing, text, utils, vision

@paddle-bot
Copy link

paddle-bot bot commented Jan 30, 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 Jan 30, 2026
This PR changes `code-block:: python` markers to `code-block:: pycon`
in `paddle/base/framework.py` for better xdoctest compatibility.

This is part 3 of code-block standardization work:
- Part 1: PaddlePaddle#77493
- Part 2: PaddlePaddle#77513
- Part 3: This PR (framework.py only)

## Changes

- Changed 74 occurrences of `code-block:: python` to `code-block:: pycon`
- Formatted with ruff
- No multi-line to single-line changes detected
@ShigureNyako ShigureNyako force-pushed the docs/clean-codeblock-pr branch from 3741a36 to 0600252 Compare January 30, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant