Skip to content

Commit 50a01b1

Browse files
committed
Python: Remove superfluous reference to FunctionExpr
This way we also get annotations that appear in `Lambda`s
1 parent 5d3b40d commit 50a01b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/Exprs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ class Annotation extends Expr {
751751
Annotation() {
752752
this = any(AnnAssign a).getAnnotation()
753753
or
754-
exists(Arguments args | args = any(FunctionExpr f).getArgs() |
754+
exists(Arguments args |
755755
this in [
756756
args.getAnAnnotation(),
757757
args.getAKwAnnotation(),

0 commit comments

Comments
 (0)