Skip to content

Commit a159790

Browse files
committed
add ref targets for 115 and 116
1 parent 4395211 commit a159790

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ _`ASYNC113` : start-soon-in-aenter
6565
_`ASYNC114` : startable-not-in-config
6666
Startable function (i.e. has a ``task_status`` keyword parameter) not in :ref:`--startable-in-context-manager <--startable-in-context-manager>` parameter list, please add it so ASYNC113 can catch errors when using it.
6767

68-
ASYNC115 : async-zero-sleep
68+
_`ASYNC115` : async-zero-sleep
6969
Replace :func:`trio.sleep(0) <trio.sleep>`/:func:`anyio.sleep(0) <anyio.sleep>` with the more suggestive :func:`trio.lowlevel.checkpoint`/:func:`anyio.lowlevel.checkpoint`.
7070

71-
ASYNC116 : long-sleep-not-forever
71+
_`ASYNC116` : long-sleep-not-forever
7272
:func:`trio.sleep`/:func:`anyio.sleep` with >24 hour interval should usually be :func:`trio.sleep_forever`/:func:`anyio.sleep_forever`.
7373

74-
ASYNC118 : cancelled-class-saved
74+
_`ASYNC118` : cancelled-class-saved
7575
Don't assign the value of :func:`anyio.get_cancelled_exc_class` to a variable, since that breaks linter checks and multi-backend programs.
7676

7777
_`ASYNC119` : yield-in-cm-in-async-gen

0 commit comments

Comments
 (0)