src/url_checks/messages.py
def build_messages(app_name, Message, message_list):
    """Build messages dictionary of specific type"""
    letter = get_message_letter(Message)
    return {
        msg.var: partial(
            Message,
            id=f"{app_name}.{letter}{i:0{3}}",
            **omit_keys("var", msg._asdict()),
        )
        for i, msg in enumerate(message_list, start=1)
    }
Build messages dictionary of specific type
Build messages dictionary of specific type
Build messages dictionary of specific type
def build_messages(app_name, Message, message_list):
    letter = get_message_letter(Message)
    return {
        msg.var: partial(
            Message,
            id=f"{app_name}.{letter}{i:0{3}}",
            **omit_keys("var", msg._asdict()),
        )
        for i, msg in enumerate(message_list, start=1)
    }
def build_messages ( app_name , Message , message_list ) : letter = get_message_letter ( Message ) return { msg . var : partial ( Message , id = f"{app_name}.{letter}{i:0{3}}" , ** omit_keys ( "var" , msg . _asdict ( ) ) , ) for i , msg in enumerate ( message_list , start = 1 ) }
Build messages dictionary of specific type
Build messages dictionary of specific type
"""Build messages dictionary of specific type"""
app_name
Message
message_list