util

Helper functions.

Functions

Summary

get_subtype

Gets the subscribed type of a generic type.

is_mapping_type

Check if the type is mapping.

is_scalar_type

Check if the type is scalar.

is_sequence_type

Check if the type is a sequence.

wrap_func_as_method

A decorator to wrap a function as class method.

Exceptions

Exception Summary

ModelError

Raised when a model contains errors.