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

Member predicate AttrRef::mayHaveAttributeName

Holds if this attribute reference may access an attribute named attrName. Uses local data flow to track potential attribute names, which may lead to imprecision. If more precision is needed, consider using getAttributeName instead.

predicate mayHaveAttributeName(string attrName)