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

Member predicate ConstantObjectInternal::binds

Holds if attribute lookup on this object may “bind” instance to descriptor. Here “bind” means that instance is passed to the descriptor.__get__() method at runtime. The term “bind” is used as this most likely results in a bound-method.

predicate binds(ObjectInternal instance, string name, ObjectInternal descriptor)