Predicate hasContextmanagerDecorator
Holds if the function func
has a contextlib.contextmanager
.
Import path
import semmle.python.dataflow.new.internal.DataFlowDispatch
predicate hasContextmanagerDecorator(Function func)
Holds if the function func
has a contextlib.contextmanager
.
import semmle.python.dataflow.new.internal.DataFlowDispatch
predicate hasContextmanagerDecorator(Function func)