(args)
Enforces that all elements in args have the same type.
Enforces that all elements in args have the same type.
Enforces that all elements in args have the same type .
def assert_same_type_args(args):
    """ Enforces that all elements in args have the same type. """
    ref_t = args[0].get_type()
    for arg in args[1:]:
        t = arg.get_type()
        if (t != ref_t):
            raise PysmtTypeError("Arguments should be of the same type!\n" +
                             str([str((a, a.get_type())) for a in args]))
def assert_same_type_args ( args ) : ref_t = args [ 0 ] . get_type ( ) for arg in args [ 1 : ] : t = arg . get_type ( ) if ( t != ref_t ) : raise PysmtTypeError ( "Arguments should be of the same type!\n" + str ( [ str ( ( a , a . get_type ( ) ) ) for a in args ] ) )