DSMFunctionPrototype

class dsviper.DSMFunctionPrototype

Bases: object

A function signature as declared: its name, its parameters and their types, and what it returns.

Note: Not directly instantiable.

name() → str

Return the function name as declared.

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

Return the list of parameters.

return_type() → DSMType

Return the type of the returned value.