code: def invalid_type_error(method_name, arg_name, got_value, expected_type,
                         version='0.13.0'):
      
      got_type = type(got_value)
      msg = ("As of {version}, 'adapter.{method_name}' expects argument "
             "'{arg_name}' to be of type '{expected_type}', instead got "
             "{got_value} ({got_type})")
      raise_compiler_error(msg.format(version=version, method_name=method_name,
                           arg_name=arg_name, expected_type=expected_type,
                           got_value=got_value, got_type=got_type))
docs: Raise a CompilationException when an adapter method available to macros
      has changed.