class documentation

class BoundMethod(UnboundMethod): (source)

View In Hierarchy

a special node representing a method bound to an instance
Method __init__ Undocumented
Method bool​_value Undocumented
Method implicit​_parameters Undocumented
Method infer​_call​_result No summary
Method is​_bound Undocumented
Class Variable special​_attributes Undocumented
Instance Variable bound Undocumented
Method _infer​_type​_new​_call Try to infer what type.__new__(mcs, name, bases, attrs) returns.

Inherited from UnboundMethod:

Method __repr__ Undocumented
Method getattr Undocumented
Method igetattr Undocumented

Inherited from Proxy (via UnboundMethod):

Method __getattr__ Undocumented
Method infer Undocumented
Instance Variable _proxied Undocumented
def __init__(self, proxy, bound): (source)

Undocumented

def bool_value(self, context=None): (source)
def implicit_parameters(self): (source)
def infer_call_result(self, caller, context=None): (source)
The boundnode of the regular context with a function called on object.__new__ will be of type object, which is incorrect for the argument in general. If no context is given the object.__new__ call argument will correctly inferred except when inside a call that requires the additional context (such as a classmethod) of the boundnode to determine which class the method was called from
def is_bound(self): (source)

Undocumented

special_attributes = (source)
bound = (source)

Undocumented

def _infer_type_new_call(self, caller, context): (source)

Try to infer what type.__new__(mcs, name, bases, attrs) returns.

In order for such call to be valid, the metaclass needs to be a subtype of type, the name needs to be a string, the bases needs to be a tuple of classes