Skip to content

Conversation

@hyongtao-code
Copy link
Contributor

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

Fix types.coroutine wrappers to expose the suspended state. Ensure inspect.getgeneratorstate() and getcoroutinestate() handle wrapped generators correctly.

@@ -0,0 +1 @@
Fix an issue where ``inspect.getgeneratorstate()`` and ``inspect.getcoroutinestate()`` could fail for generators wrapped by ``types.coroutine`` in the suspended state.
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use additional RST markers here:

Suggested change
Fix an issue where ``inspect.getgeneratorstate()`` and ``inspect.getcoroutinestate()`` could fail for generators wrapped by ``types.coroutine`` in the suspended state.
Fix an issue where :func:`inspect.getgeneratorstate` and :func:`inspect.getcoroutinestate` could fail for generators wrapped by :func:`types.coroutine` in the suspended state.

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