Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-131666: markanext_awaitable.close as aMETH_NOARGS instead ofMETH_VARARGS#131671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@picnixz
Copy link
Member

@picnixzpicnixz commentedMar 24, 2025
edited by bedevere-appbot
Loading

It's not really an issue because the underlying coroutine wrapper will raise a TypeError, so there won't be a different exception raised now. It's just that instead of "coroutine_wrapper.close taskes no argument", we have "anext_awaitable.close takes no argument".

@kumaraditya303kumaraditya303 merged commit1393bd3 intopython:mainMar 25, 2025
46 checks passed
@picnixzpicnixz deleted the fix/await/anextawaitable-close-131666 branchMarch 25, 2025 05:21
returnself

anext_awaitable=anext(A(),"a").__await__()
self.assertRaises(TypeError,anext_awaitable.close,1)
Copy link
Contributor

Choose a reason for hiding this comment

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

this results in an unawaited coroutine warning

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed here#131708

diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 1, 2025
seehwan pushed a commit to seehwan/cpython that referenced this pull requestApr 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@graingertgraingertgraingert left review comments

@kumaraditya303kumaraditya303kumaraditya303 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@picnixz@graingert@kumaraditya303

[8]ページ先頭

©2009-2025 Movatter.jp