call the method self.build_attrs with 3 arguments: attrs, type as self.input_type, name as name, substitute the result for final_attrs.
final_attrs = self . build_attrs ( attrs , type = self . input_type , name = name )