FunctionPrototype

class dsviper.FunctionPrototype

Bases: object

The signature of a function: its return type and its parameters.

Note: Not directly instantiable.

name() → str

Return the name of the function this prototype is the signature of.

parameters() → list[tuple[str, Type]]

Return the list of parameters.

return_type() → Type

Return the type of the returned value.