def update_type_errors(self, type_errors: Sequence[error.Error]) -> None:
    LOG.info(f'Refereshing type errors received from Pyre server. Total number of type errors is {len(type_errors)}.')
    incremental.log_error_statistics(remote_logging=self.remote_logging, type_errors=type_errors, command_name=COMMAND_NAME)
    self.server_state.diagnostics = type_errors_to_diagnostics(type_errors)
def update_type_errors(self, type_errors: Sequence[error.Error]) -> None:
    LOG.info(f'Refereshing type errors received from Pyre server. Total number of type errors is {len(type_errors)}.')
    incremental.log_error_statistics(remote_logging=self.remote_logging, type_errors=type_errors, command_name=COMMAND_NAME)
    self.server_state.diagnostics = type_errors_to_diagnostics(type_errors)