-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
async100 now ignores trio.open_nursery and anyio.create_task_group (#317
) * async100 now ignores trio.open_nursery and anyio.create_task_group * don't crash on weird 'with' call * add more documentation. fix bad formatting for 24.9.3 in changelog * tweak docs * fix cross-refs --------- Co-authored-by: Zac Hatfield-Dodds <[email protected]>
- Loading branch information
Showing
11 changed files
with
136 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# AUTOFIX | ||
# ASYNCIO_NO_ERROR # asyncio.open_nursery doesn't exist | ||
# ANYIO_NO_ERROR # anyio.open_nursery doesn't exist | ||
import trio | ||
|
||
|
||
async def nursery_no_cancel_point(): | ||
# error: 9, "trio", "CancelScope" | ||
async with trio.open_nursery(): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
+++ | ||
@@ x,6 x,6 @@ | ||
|
||
|
||
async def nursery_no_cancel_point(): | ||
- with trio.CancelScope(): # error: 9, "trio", "CancelScope" | ||
- async with trio.open_nursery(): | ||
- ... | ||
+ # error: 9, "trio", "CancelScope" | ||
+ async with trio.open_nursery(): | ||
+ ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# AUTOFIX | ||
# ASYNCIO_NO_ERROR # asyncio.open_nursery doesn't exist | ||
# ANYIO_NO_ERROR # anyio.open_nursery doesn't exist | ||
import trio | ||
|
||
|
||
async def nursery_no_cancel_point(): | ||
with trio.CancelScope(): # error: 9, "trio", "CancelScope" | ||
async with trio.open_nursery(): | ||
... |