Path 1: 1 calls (1.0)

('my-message',) (1)

only_required_for_messages..store_messages def (1)

1def check_messages(
2    *messages: str,
3) -> Callable[
4    [AstCallbackMethod[_CheckerT, _NodeT]], AstCallbackMethod[_CheckerT, _NodeT]
5]:
6    """Kept for backwards compatibility, deprecated.
7
8    Use only_required_for_messages instead, which conveys the intent of the decorator much clearer.
9    """
10    warnings.warn(
11        "utils.check_messages will be removed in favour of calling "
12        "utils.only_required_for_messages in pylint 3.0",
13        DeprecationWarning,
14        stacklevel=2,
15    )
16
17    return only_required_for_messages(*messages)