mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-87568 PySuspiciousBooleanConditionInspection: fixes from review
GitOrigin-RevId: d8581d8f40a3b6e5d5865660aa9b7e39e3ac3fe5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3a6ae5cccf
commit
cb03d603c8
+1
-1
@@ -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")
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ async def f() -> bool:
|
||||
|
||||
|
||||
async def main():
|
||||
if await f():
|
||||
if await f() or f():
|
||||
print("hi")
|
||||
|
||||
Reference in New Issue
Block a user