finesse.script.graph.KatGraph.argument¶
- KatGraph.argument(argument_node, adapter)[source]¶
Get argument corresponding to node argument_node.
This returns the argument object for a syntax graph node. It is useful for retrieving the names for positional arguments during parsing, but works for keyword arguments too.
- Returns:
BoundArgument
The argument specified in the script corresponding to argument_node.
- Raises:
- TypeError
When argument_node corresponds to a positional argument that doesn’t exist in the setter signature defined in adapter.