duron.typing module
JSONValue
module-attribute
JSONValue
Recursive type representing any valid JSON value.
TypeHint
module-attribute
TypeHint
A type representing typing_extensions.TypeForm or UnspecifiedType.
UnspecifiedType
module-attribute
UnspecifiedType
TypeHint value indicating that a parameter was not specified.
FunctionType
Bases: NamedTuple
name
instance-attribute
name
The name of the function.
parameter_annotations
instance-attribute
parameter_annotations
A mapping of parameter names to their types.
parameter_types
instance-attribute
parameter_types
A mapping of parameter names to their types.
parameters
instance-attribute
parameters
The names of the parameters of the function, in order.
return_annotations
instance-attribute
return_annotations
The return type of the function.
return_type
instance-attribute
return_type
The name of the function.
inspect_function
inspect_function(fn)