Files
codeql/python/ql/src
Taus 6b64443c49 Python: Port cyclic import queries
The new CyclicImports.qll is a fairly straight port of Cyclic.qll, with
the main changes being:

- We now use Module instead of ModuleValue everywhere
- We use getModuleReference instead of pointsTo
- is_import_time was replaced with a use of `ImportTimeScope`

The predicate that changed the most is `stmt_imports`, which in the
original just did `s.getASubExpression().pointsTo(result)`. The new
version has three branches, one for each kind of import, and with
special handling of imports from within a submodule (which is not
something that should be flagged).

No test changes.
2026-03-09 17:22:07 +00:00
..
2026-02-16 13:48:32 +00:00
2021-03-25 15:06:46 +01:00
2025-09-09 13:46:52 +01:00
2026-02-12 12:01:33 +00:00
2026-03-09 17:13:04 +00:00