Skip to content

ASYNC115 False Positive #17728

@rmorshea-atom-computing

Description

Summary

The ASYNC115 rule states that it checks for usages of trio.sleep(0) or anyio.sleep(0) and replaces them with trio.lowlevel.checkpoint().

This produces false positives in the case where you are using anyio with the asyncio backend.

I use anyio because it adheres to the rules of structured concurrency while remaining compatible with whatever async backend my users choose.

Version

0.8.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoMore information is needed from the issue author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions