class astroid.nodes.Call(lineno: int | None, col_offset: int | None, parent: NodeNG | None, *, end_lineno: int | None, end_col_offset: int | None)[source]#

Bases: NodeNG

Class representing an ast.Call node.

A Call node is a call to a function, method, etc.

>>> import astroid
>>> node = astroid.extract_node('function()')
>>> node
<Call l.1 at 0x7f23b2e71eb8>
args: list[NodeNG]#

The positional arguments being given to the call.

func: NodeNG#

What is being called.


Get the child nodes below this node.

keywords: list[Keyword]#

The keyword arguments being given to the call.

property kwargs: list[Keyword]#

The keyword arguments that unpack something.

postinit(func: NodeNG, args: list[NodeNG], keywords: list[Keyword]) None[source]#
property starargs: list[Starred]#

The positional arguments that unpack something.