pylint/checkers/utils.py
def check_messages(*messages: str) -> Callable:
    """decorator to store messages that are handled by a checker method"""

    def store_messages(func):
        func.checks_msgs = messages
        return func

    return store_messages
def check_messages(*messages: str) -> Callable:
    def store_messages(func):
        func.checks_msgs = messages
        return func

    return store_messages
def check_messages ( * messages : str ) -> Callable : def store_messages ( func ) : func . checks_msgs = messages return func return store_messages
decorator to store messages that are handled by a checker method
decorator to store messages that are handled by a checker method