Skip to content

Conversation

@sobolevn
Copy link
Member

Source: https://github.com/python/cpython/blob/3.12/Objects/genobject.c#L1551

It is read-only:

>>>asyncdefsome(): ... yield1 ... >>>some() <async_generatorobjectsomeat0x10559d300>>>>some().ag_suspendedFalse>>>some().ag_suspended=TrueTraceback (mostrecentcalllast): File"<stdin>", line1, in<module>AttributeError: attribute'ag_suspended'of'async_generator'objectsisnotwritable

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@sobolevn@AlexWaygood