mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Python: Remove superfluous reference to FunctionExpr
This way we also get annotations that appear in `Lambda`s
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user