Method: pylint.lint.message_state_handler._MessageStateHandler.disable
Calls: 6199, Exceptions: 21, Paths: 2Back
Path 1: 6178 calls (1.0)
'locally-disabled' (982) 'useless-suppression' (981) 'suppressed-message' (980) 'missing-docstring' (398) 'too-few-public-methods' (336) 'I' (320) 'in...
'package' (3564) 'module' (2614)
None (3564) 1 (850) 2 (687) 3 (381) 4 (197) 5 (92) 6 (74) 7 (48) 9 (22) 10 (22)
False (6178)
1def disable(
2 self,
3 msgid: str,
4 scope: str = "package",
5 line: int | None = None,
6 ignore_unknown: bool = False,
7 ) -> None:
8 """Disable a message for a scope."""
9 self._set_msg_status(
10 msgid, enable=False, scope=scope, line=line, ignore_unknown=ignore_unknown
11 )
12 self._register_by_id_managed_msg(msgid, line)
Path 2: 21 calls (0.0)
'a-removed-option' (4) 'logging-not-lazylogging-format-interpolation' (2) 'C05048' (1) 'execfile-builtin' (1) 'no-self-use' (1) 'W1656' (1) 'R0201' (1...
'module' (16) 'package' (5)
None (5) 4 (3) 1 (3) 6 (2) 10 (2) 8 (1) 12 (1) 36 (1) 38 (1) 13 (1)
False (21)
UnknownMessageError (14) DeletedMessageError (5) MessageBecameExtensionError (2)
1def disable(
2 self,
3 msgid: str,
4 scope: str = "package",
5 line: int | None = None,
6 ignore_unknown: bool = False,
7 ) -> None:
8 """Disable a message for a scope."""
9 self._set_msg_status(
10 msgid, enable=False, scope=scope, line=line, ignore_unknown=ignore_unknown
11 )
12 self._register_by_id_managed_msg(msgid, line)