parameters: (
              self, command_name: str, variant_type_name: str, file: str, field_name: Optional[str],
              is_command_parameter: bool)
docstring: Add an error about the new variant types not being a superset.
  
          Add an error about the new command or parameter variant types not being a superset
          of the old variant types.
docstring_summary: Add an error about the new variant types not being a superset.
docstring_tokens: Add an error about the new variant types not being a superset .
function: def add_new_command_or_param_variant_type_not_superset_error(
              self, command_name: str, variant_type_name: str, file: str, field_name: Optional[str],
              is_command_parameter: bool) -> None:
          # pylint: disable=too-many-arguments,invalid-name
          """
          Add an error about the new variant types not being a superset.
  
          Add an error about the new command or parameter variant types not being a superset
          of the old variant types.
          """
          if is_command_parameter:
              self._add_error(
                  ERROR_ID_NEW_COMMAND_PARAMETER_VARIANT_TYPE_NOT_SUPERSET, command_name,
                  ("The '%s' command has field or sub-field '%s' of variant types that is not "
                   "a superset of the corresponding old field variant types: "
                   "The type '%s' is in the old field types but not the new field types.") %
                  (command_name, field_name, variant_type_name), file)
          else:
              self._add_error(ERROR_ID_NEW_COMMAND_VARIANT_TYPE_NOT_SUPERSET, command_name,
                              ("'%s' or its sub-struct has variant types that is not a supserset "
                               "of the corresponding"
                               " old command variant types: The type '%s' "
                               "is in the old command types but not the new command types.") %
                              (command_name, variant_type_name), file)
function_tokens: def add_new_command_or_param_variant_type_not_superset_error ( self , command_name : str , variant_type_name : str , file : str , field_name : Optional [ str ] , is_command_parameter : bool ) -> None : # pylint: disable=too-many-arguments,invalid-name if is_command_parameter : self . _add_error ( ERROR_ID_NEW_COMMAND_PARAMETER_VARIANT_TYPE_NOT_SUPERSET , command_name , ( "The '%s' command has field or sub-field '%s' of variant types that is not " "a superset of the corresponding old field variant types: " "The type '%s' is in the old field types but not the new field types." ) % ( command_name , field_name , variant_type_name ) , file ) else : self . _add_error ( ERROR_ID_NEW_COMMAND_VARIANT_TYPE_NOT_SUPERSET , command_name , ( "'%s' or its sub-struct has variant types that is not a supserset " "of the corresponding" " old command variant types: The type '%s' " "is in the old command types but not the new command types." ) % ( command_name , variant_type_name ) , file )