Skip to content
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

make ASYNC912 and 913 care about cancel points, and ignore schedule points #344

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

jakkdl
Copy link
Member

@jakkdl jakkdl commented Jan 31, 2025

fixes #340 and extends it to ASYNC912 as well

I felt kinda silly realizing the trio.open_nursery <-> anyio.create_task_group replacement only now, that could clean up eval_files for... 100, 101, 105, 111, 112, 113 & 121 😅

@jakkdl
Copy link
Member Author

jakkdl commented Jan 31, 2025

oh, derp, trio.open_nursery <-> anyio.create_task_group broke a bunch of eval files. I'll break that out into another PR

@jakkdl jakkdl mentioned this pull request Feb 3, 2025
string: str,
original: str = "trio",
new: str = "anyio",
replace_nursery: bool = False,
Copy link
Member Author

Choose a reason for hiding this comment

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

the replace_nursery parameter is temporary and removed in #345

@jakkdl jakkdl requested review from Zac-HD and A5rocks February 3, 2025 15:53
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Nice - this is a pretty subtle point, so catching the edge cases is particularly helpful!

@Zac-HD Zac-HD merged commit 7a2a67b into python-trio:main Feb 3, 2025
11 checks passed
@jakkdl jakkdl deleted the async913_open_nursery branch February 3, 2025 22:49
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.

ASYNC913 should maybe catch trio.open_nursery
2 participants