We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69640f3 commit 7f61040Copy full SHA for 7f61040
python/ql/lib/semmle/python/ApiGraphs.qll
@@ -746,6 +746,10 @@ module API {
746
lbl = Label::return() and
747
ref = pred.getACall()
748
or
749
+ // Awaiting a node that is a use of `base`
750
+ lbl = Label::await() and
751
+ ref = pred.getAnAwaited()
752
+ or
753
// Subclassing a node
754
lbl = Label::subclass() and
755
exists(PY::ClassExpr clsExpr, DataFlow::Node superclass | pred.flowsTo(superclass) |
@@ -759,10 +763,6 @@ module API {
759
763
ref.(DataFlow::ExprNode).getNode().getNode() = clsExpr.getADecoratorCall()
760
764
)
761
765
762
- or
- // awaiting
- lbl = Label::await() and
- ref = pred.getAnAwaited()
766
767
768
exists(DataFlow::Node def, PY::CallableExpr fn |
0 commit comments