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

Member predicate ClassValue :: isMapping

Holds if this class is a mapping. Mutually exclusive with isSequence().

Although a class will satisfy the requirement by the definition in, 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 isMapping ( )