@classmethod
    def ofType(klass, messages, messageType):
        result = []
        for message in messages:
            if message.get(MESSAGE_TYPE_FIELD) == messageType.message_type:
                result.append(klass(message))
        return result


    # PEP 8 variant:
Add mapping for output variable.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/testing.py/LoggedMessage.ofType--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/contrib/m4/mid_fidelity.py/MidFidelity.add_output_mapping