Files
codeql/python/ql/test/query-tests/Statements/general/NonIteratorInForLoop.expected
Taus 32c4db4e50 Python: Port NonIteratorInForLoop.ql
Uses the `DuckTyping` module to approximate whether something is likely
to be an iterator or not.

We lose one test result due to the fact that we don't know what to do
about `for ... in 1` (because `1` is an instance of a built-in). I'm
going to defer addressing this until we get some modelling of built-in
types.
2026-04-09 15:59:24 +00:00

2 lines
208 B
Plaintext

| test.py:50:1:50:23 | For | This for-loop may attempt to iterate over a $@ of class $@. | test.py:50:10:50:22 | NonIterator() | non-iterable instance | test.py:45:1:45:26 | Class NonIterator | NonIterator |