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
More of a feature request than a bug, but there's a common bug pattern that could be caught, likely should go under the unused-coroutine check. Basically this:
async def foo() -> bool: ...
async def bar():
if foo():
print("always evaluates to True! foo should have been awaited")
This does get caught as a runtime error when things get GC'd, and does technically get caught by the implicit-bool checker, but I think that general implicit conversions to bool are pretty common. But implicitly converting a coroutine to bool seems like almost universally an error.
Activity