mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
PY-87568 python: add inspection for coroutine in boolean context
GitOrigin-RevId: a4225a2a8f2959947486a0bf927ff8ac388c5ccb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a7bdd3fb88
commit
8870cfef3f
+7
@@ -0,0 +1,7 @@
|
||||
async def f() -> bool:
|
||||
return True
|
||||
|
||||
|
||||
async def main():
|
||||
if <warning descr="Coroutine not awaited in boolean context"><caret>f()</warning>:
|
||||
print("hi")
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
async def f() -> bool:
|
||||
return True
|
||||
|
||||
|
||||
async def main():
|
||||
if await f():
|
||||
print("hi")
|
||||
Reference in New Issue
Block a user