Skip to content

Make AsyncExitStack generic on __aexit__ #13888

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

provinzkraut
Copy link
Contributor

Follow up to #11048, where ExitStack has been made generic on __exit__. Reasoning and impact are the same, with the addition that both ExitStack and AsyncExitStack should probably behave the same here :)

Copy link
Contributor

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

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you! Looks correct.

@sobolevn sobolevn merged commit 8a6bfb0 into python:main Apr 27, 2025
55 checks passed
@sobolevn
Copy link
Member

Congrats on first typeshed PR 🎉

@provinzkraut provinzkraut deleted the use-tvar-for-async-exit-stack-aexit branch April 27, 2025 09:41
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
Sign up for free to 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