parameters: (self, command_name: str, old_type: str,
                                                       file: str, field_name: Optional[str],
                                                       is_command_parameter: bool)
docstring: Add an error about BSON serialization type.
  
          Add an error about the old command or command parameter type's
          bson serialization type being of type 'any' when the new type is non-any or
          when it is not explicitly allowed.
docstring_summary: Add an error about BSON serialization type.
docstring_tokens: Add an error about BSON serialization type .
function: def add_old_command_or_param_type_bson_any_error(self, command_name: str, old_type: str,
                                                       file: str, field_name: Optional[str],
                                                       is_command_parameter: bool) -> None:
          # pylint: disable=too-many-arguments
          """
          Add an error about BSON serialization type.
  
          Add an error about the old command or command parameter type's
          bson serialization type being of type 'any' when the new type is non-any or
          when it is not explicitly allowed.
          """
          if is_command_parameter:
              self._add_error(
                  ERROR_ID_OLD_COMMAND_PARAMETER_TYPE_BSON_SERIALIZATION_TYPE_ANY, command_name,
                  "The '%s'' command has field or sub-field '%s' that has type '%s' "
                  "that has a bson serialization type 'any'" % (command_name, field_name, old_type),
                  file)
          else:
              self._add_error(ERROR_ID_OLD_COMMAND_TYPE_BSON_SERIALIZATION_TYPE_ANY, command_name,
                              ("'%s' or its sub-struct has type '%s' that has a "
                               "bson serialization type 'any'") % (command_name, old_type), file)
function_tokens: def add_old_command_or_param_type_bson_any_error ( self , command_name : str , old_type : str , file : str , field_name : Optional [ str ] , is_command_parameter : bool ) -> None : # pylint: disable=too-many-arguments if is_command_parameter : self . _add_error ( ERROR_ID_OLD_COMMAND_PARAMETER_TYPE_BSON_SERIALIZATION_TYPE_ANY , command_name , "The '%s'' command has field or sub-field '%s' that has type '%s' " "that has a bson serialization type 'any'" % ( command_name , field_name , old_type ) , file ) else : self . _add_error ( ERROR_ID_OLD_COMMAND_TYPE_BSON_SERIALIZATION_TYPE_ANY , command_name , ( "'%s' or its sub-struct has type '%s' that has a " "bson serialization type 'any'" ) % ( command_name , old_type ) , file )