Files
codeql/python/ql/test/3/extractor-tests/lazy-imports/test.ql
2026-04-10 14:39:13 +00:00

8 lines
248 B
Plaintext

import python
string lazy(Import imp) { if imp.isLazy() then result = "lazy" else result = "normal" }
from Import imp
where imp.getLocation().getFile().getShortName() = "test.py"
select imp.getLocation().getStartLine(), imp.toString(), lazy(imp)