class documentation
A special node representing a method not bound to an instance.
Method | __repr__ |
Undocumented |
Method | bool |
Undocumented |
Method | getattr |
Undocumented |
Method | igetattr |
Undocumented |
Method | implicit |
Undocumented |
Method | infer |
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 |
Undocumented |
Class Variable | special |
Undocumented |
Method | _infer |
Undocumented |
Inherited from Proxy
:
Method | __getattr__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | infer |
Undocumented |
Class Variable | _proxied |
Undocumented |
overridden in
astroid.bases.BoundMethod
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 _infer_builtin_new(self, caller:
nodes.Call
, context: InferenceContext
) -> collections.abc.Generator[ (nodes.Const|Instance)|UninferableBase, None, None]
:
(source)
¶
Undocumented