Files
openide/python/testData/inspections/PyUnusedLocalCoroutine/test.py
T
Mikhail Golubev 031ab39ef5 PY-9778 Do not warn about unused inner functions with unknown decorators
I added helper class PyKnownDecoratorUtil that contains list of
well-known decorators from Python's standard library and redefined
several existing methods from PyUtil in terms of this class.
2014-11-24 19:36:07 +03:00

7 lines
163 B
Python

import asyncio
# PY-9778
def process():
@asyncio.coroutine
def <weak_warning descr="Local function 'func' is not used">func</weak_warning>():
pass