In processing, if an algorithm has a boolean as an output, it cannot be defined as boolean but as a number. To be more precise in algorithms description, the commit add QgsProcessingOutputBoolean.