pylint/message/message_store.py
def get_message_definitions(self, msgid_or_symbol: str) -> list:
        """Returns the Message object for this message.

        :param str msgid_or_symbol: msgid_or_symbol may be either a numeric or symbolic id.
        :raises UnknownMessageError: if the message id is not defined.
        :rtype: List of MessageDefinition
        :return: A message definition corresponding to msgid_or_symbol
        """
        if msgid_or_symbol[1:].isdigit():
            msgid_or_symbol = msgid_or_symbol.upper()
        for source in (self._alternative_names, self._messages_definitions):
            try:
                return [source[msgid_or_symbol]]
            except KeyError:
                pass
        error_msg = "No such message id or symbol '{msgid_or_symbol}'.".format(
            msgid_or_symbol=msgid_or_symbol
        )
        raise UnknownMessageError(error_msg)
def get_message_definitions(self, msgid_or_symbol: str) -> list:
        if msgid_or_symbol[1:].isdigit():
            msgid_or_symbol = msgid_or_symbol.upper()
        for source in (self._alternative_names, self._messages_definitions):
            try:
                return [source[msgid_or_symbol]]
            except KeyError:
                pass
        error_msg = "No such message id or symbol '{msgid_or_symbol}'.".format(
            msgid_or_symbol=msgid_or_symbol
        )
        raise UnknownMessageError(error_msg)
def get_message_definitions ( self , msgid_or_symbol : str ) -> list : if msgid_or_symbol [ 1 : ] . isdigit ( ) : msgid_or_symbol = msgid_or_symbol . upper ( ) for source in ( self . _alternative_names , self . _messages_definitions ) : try : return [ source [ msgid_or_symbol ] ] except KeyError : pass error_msg = "No such message id or symbol '{msgid_or_symbol}'." . format ( msgid_or_symbol = msgid_or_symbol ) raise UnknownMessageError ( error_msg )
Returns the Message object for this message.

        :param str msgid_or_symbol: msgid_or_symbol may be either a numeric or symbolic id.
        :raises UnknownMessageError: if the message id is not defined.
        :rtype: List of MessageDefinition
        :return: A message definition corresponding to msgid_or_symbol
Returns the Message object for this message .