#NEWLINE# def bad_value( arg_name , type_name , value , line , column , errors = None ) : #NEWLINE# #INDENT# if ( not errors ) : #NEWLINE# #INDENT# errors = [ 'Expected type "{}", found {}.' . format ( type_name , value ) ] #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'message' : ArgumentsOfCorrectType . bad_value_message ( arg_name , arg_name , value , errors ) , #NEWLINE# 'locations' : [ SourceLocation ( line , column ) ] , #NEWLINE# #UNINDENT# }