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

Member predicate ClassObject::getProbableSingletonInstance

Gets an object which is the sole instance of this class, if this class is probably a singleton. Note the ‘probable’ in the name; there is no guarantee that this class is in fact a singleton. It is guaranteed that getProbableSingletonInstance() returns at most one Object for each ClassObject.

Object getProbableSingletonInstance()