class documentation

class UnboundMethod(Proxy): (source)

Known subclasses: astroid.bases.BoundMethod

View In Hierarchy

A special node representing a method not bound to an instance.

Method __repr__ Undocumented
Method bool_value Undocumented
Method getattr Undocumented
Method igetattr Undocumented
Method implicit_parameters Undocumented
Method infer_call_result 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 be 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...
Method is_bound Undocumented
Class Variable special_attributes Undocumented
Method _infer_builtin_new Undocumented

Inherited from Proxy:

Method __getattr__ Undocumented
Method __init__ Undocumented
Method infer Undocumented
Class Variable _proxied Undocumented
def __repr__(self) -> str: (source)

Undocumented

def bool_value(self, context: InferenceContext|None = None) -> Literal[True]: (source)

Undocumented

def getattr(self, name, context: InferenceContext|None = None): (source)

Undocumented

def igetattr(self, name, context: InferenceContext|None = None): (source)

Undocumented

def implicit_parameters(self) -> Literal[0]: (source)

Undocumented

def infer_call_result(self, caller, context): (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 be 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) -> Literal[False]: (source)

Undocumented

special_attributes = (source)

Undocumented

Undocumented