parameters: (self, command_name: str, field_name: str,
                                                             file: str, type_name: Optional[str],
                                                             is_command_parameter: bool)
docstring: Add an error about a type containing a validator.
  
          Add an error about the new command or parameter type containing a validator
          while the old command or parameter type does not.
docstring_summary: Add an error about a type containing a validator.
docstring_tokens: Add an error about a type containing a validator .
function: def add_command_or_param_type_contains_validator_error(self, command_name: str, field_name: str,
                                                             file: str, type_name: Optional[str],
                                                             is_command_parameter: bool) -> None:
          # pylint: disable=too-many-arguments
          """
          Add an error about a type containing a validator.
  
          Add an error about the new command or parameter type containing a validator
          while the old command or parameter type does not.
          """
          if is_command_parameter:
              self._add_error(
                  ERROR_ID_COMMAND_PARAMETER_CONTAINS_VALIDATOR, command_name,
                  "Field or sub-field '%s' for new command '%s' contains a validator "
                  "while the old field does not." % (field_name, command_name), file)
          else:
              self._add_error(
                  ERROR_ID_COMMAND_TYPE_CONTAINS_VALIDATOR, command_name,
                  "The command '%s' or its sub-struct has type '%s' with field '%s' that "
                  "contains a validator while "
                  "the old struct type does not." % (command_name, type_name, field_name), file)
function_tokens: def add_command_or_param_type_contains_validator_error ( self , command_name : str , field_name : str , file : str , type_name : Optional [ str ] , is_command_parameter : bool ) -> None : # pylint: disable=too-many-arguments if is_command_parameter : self . _add_error ( ERROR_ID_COMMAND_PARAMETER_CONTAINS_VALIDATOR , command_name , "Field or sub-field '%s' for new command '%s' contains a validator " "while the old field does not." % ( field_name , command_name ) , file ) else : self . _add_error ( ERROR_ID_COMMAND_TYPE_CONTAINS_VALIDATOR , command_name , "The command '%s' or its sub-struct has type '%s' with field '%s' that " "contains a validator while " "the old struct type does not." % ( command_name , type_name , field_name ) , file )