CodeQL library for Python
codeql/python-all 0.7.1 (changelog, source)
Search

Member predicate ClassValue::isSequence

Holds if this class is a sequence. Mutually exclusive with isMapping().

Following the definition from https://docs.python.org/3/glossary.html#term-sequence. We don’t look at the keys accepted by `getitem, but default to treating a class as a sequence (so might treat some mappings as sequences).

predicate isSequence()