PY-87568 PySuspiciousBooleanConditionInspection: fixes from review

GitOrigin-RevId: d8581d8f40a3b6e5d5865660aa9b7e39e3ac3fe5
This commit is contained in:
Morgan Bartholomew
2026-02-24 05:53:37 +00:00
committed by intellij-monorepo-bot
parent 3a6ae5cccf
commit cb03d603c8
5 changed files with 89 additions and 65 deletions
@@ -3,5 +3,5 @@ async def f() -> bool:
async def main():
if <warning descr="Coroutine not awaited in boolean context"><caret>f()</warning>:
if <warning descr="Coroutine not awaited in boolean context"><caret>f()</warning> or <warning descr="Coroutine not awaited in boolean context">f()</warning>:
print("hi")
@@ -3,5 +3,5 @@ async def f() -> bool:
async def main():
if await f():
if await f() or f():
print("hi")