Skip to content

Conversation

@hyongtao-code
Copy link
Contributor

@hyongtao-code hyongtao-code commented Jan 22, 2026

(cherry picked from commit 4ef30a5)

This backport resolves a docstring conflict in Lib/inspect.py by applying the minimal necessary change.

While an alternative would be to first cherry-pick gh-122059 and then gh-144086, this PR instead follows the minimal-change principle by directly adding the two missing attribute lines (gi_suspended and gi_yieldfrom) to the existing 3.13 docstring layout.

This approach avoids broader docstring reformatting and is consistent with prior guidance for stable branches, where docstring changes should be kept minimal (see discussion in gh-122059).

No behavioral changes; this backport is limited to documentation consistency with the already-merged tests.

… and `generator/coroutine` tests (pythonGH-144086)

(cherry picked from commit 4ef30a5)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
@hyongtao-code
Copy link
Contributor Author

Hi @sobolevn , could you please help review this backport?
Please feel free to push any necessary changes if you feel this PR is not accurate enough.

@sobolevn
Copy link
Member

@sobolevn sobolevn merged commit a6acb16 into python:3.13 Jan 22, 2026
43 checks passed
@hyongtao-code hyongtao-code deleted the backport-4ef30a5-3.13 branch January 22, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants