class documentation

class Signature(Node): (source)

View In Hierarchy

Represents an individual signature of a function. For overloaded functions, this is one specific combination of parameters. For non-overloaded functions, there is a 1:1 correspondence between function and signature. Attributes: params: The list of parameters for this function definition. starargs: Name of the "*" parameter. The "args" in "*args". starstarargs: Name of the "*" parameter. The "kw" in "**kw". return_type: The return type of this function. exceptions: List of exceptions for this function definition. template: names for bindings for bounded types in params/return_type

Class Variable exceptions Undocumented
Class Variable params Undocumented
Class Variable return_type Undocumented
Class Variable starargs Undocumented
Class Variable starstarargs Undocumented
Class Variable template Undocumented
Property has_optional Undocumented
Property name Undocumented

Inherited from Node:

Method __ge__ Undocumented
Method __gt__ Larger than other node? Define so we can have deterministic ordering.
Method __iter__ Undocumented
Method __le__ Undocumented
Method __lt__ Smaller than other node? Define so we can have deterministic ordering.
Method IterChildren Undocumented
Method PopulateLookupCache Undocumented
Method Replace Undocumented
Method Visit Visitor interface for transforming a tree of nodes to a new tree.
Class Variable __slots__ Undocumented
Method _ToTuple Returns a tuple of the fields of self as a sort key.
Class Variable _name2item Undocumented
exceptions: Tuple[Type, ...] = (source)

Undocumented

Undocumented

return_type: Type = (source)

Undocumented

Undocumented

Undocumented

Undocumented

@property
has_optional = (source)

Undocumented

Undocumented