Skip to content

Update types.pyi for Python3.12 - #10288

Merged
AlexWaygood merged 2 commits into
mainfrom
py312-types
Jun 9, 2023
Merged

Update types.pyi for Python3.12#10288
AlexWaygood merged 2 commits into
mainfrom
py312-types

Conversation

@sobolevn

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants

@sobolevn@AlexWaygood