We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ced7fc commit e93fdf1Copy full SHA for e93fdf1
1 file changed
src/trio/_core/_traps.py
@@ -66,7 +66,9 @@ class PermanentlyDetachCoroutineObject:
66
def _real_async_yield(
67
obj: MessageType,
68
) -> Generator[MessageType, None, None]:
69
- return (yield obj)
+ # "Using `yield` and `return {value}` in a generator function can
70
+ # lead to confusing behavior"
71
+ return (yield obj) # noqa: B901
72
73
74
# Real yield value is from trio's main loop, but type checkers can't
0 commit comments