Files
codeql/python/ql/test/3/library-tests/calls/OldApi.ql
Taus 82057e2e46 Python: Autoformat tests
I guess these were never considered back when we switched to
autoformatting everything.
2024-04-15 15:27:21 +00:00

16 lines
353 B
Plaintext

import python
from Call c, Expr arg, string what
where
exists(int n | arg = c.getArg(n) and what = n.toString())
or
arg = c.getStarargs() and what = "*"
or
arg = c.getKwargs() and what = "**"
or
exists(Keyword k | c.getAKeyword() = k |
what = k.getArg() and
arg = k.getValue()
)
select c.getLocation().getStartLine(), arg, what