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
In this code, a likely fix is to change func() to await func(). Meanwhile, it'll always be true since a Coroutine is always true. The truthy-bool check could flag it but it's not enabled by default. We can add a new truthy-coroutine check (like truthy-function) for the specific case of using a Coroutine in boolean context.
The error message can suggest that an await might've been mistakenly omitted.
The text was updated successfully, but these errors were encountered:
…e, which always evaluates to True. This is likely indicative of a missing `await` keyword. This addresses a feature request logged in the mypy issue tracker: python/mypy#16069.
Feature
In this code, a likely fix is to change
func()
toawait func()
. Meanwhile, it'll always be true since aCoroutine
is always true. Thetruthy-bool
check could flag it but it's not enabled by default. We can add a newtruthy-coroutine
check (liketruthy-function
) for the specific case of using aCoroutine
in boolean context.The error message can suggest that an
await
might've been mistakenly omitted.The text was updated successfully, but these errors were encountered: