You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules.rst
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,12 +161,15 @@ Optional rules disabled by default
161
161
Our 9xx rules check for semantics issues, like 1xx rules, but are disabled by default due
162
162
to the higher volume of warnings. We encourage you to enable them - without guaranteed
163
163
:ref:`checkpoint`\ s timeouts and cancellation can be arbitrarily delayed, and async
164
-
generators are prone to the problems described in :pep:`533`.
164
+
generators are prone to the problems described in :pep:`789` and :pep:`533`.
165
165
166
166
_`ASYNC900` : unsafe-async-generator
167
167
Async generator without :func:`@asynccontextmanager <contextlib.asynccontextmanager>` not allowed.
168
168
You might want to enable this on a codebase since async generators are inherently unsafe and cleanup logic might not be performed.
169
-
See `#211 <https://github.com/python-trio/flake8-async/issues/211>`__ and https://discuss.python.org/t/using-exceptiongroup-at-anthropic-experience-report/20888/6 for discussion.
169
+
See :pep:`789` for control-flow problems, :pep:`533` for delayed cleanup problems.
170
+
Further decorators can be registered with the ``--transform-async-generator-decorators``
171
+
config option, e.g. `@trio_util.trio_async_generator
0 commit comments