Python: Remove superfluous reference to FunctionExpr

This way we also get annotations that appear in `Lambda`s
This commit is contained in:
Taus
2025-03-04 15:53:34 +00:00
parent 5d3b40d514
commit 50a01b1244

View File

@@ -751,7 +751,7 @@ class Annotation extends Expr {
Annotation() {
this = any(AnnAssign a).getAnnotation()
or
exists(Arguments args | args = any(FunctionExpr f).getArgs() |
exists(Arguments args |
this in [
args.getAnAnnotation(),
args.getAKwAnnotation(),