Method: pylint.checkers.utils.check_messages
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
('my-message',) (1)
only_required_for_messages.
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)