Method: pylint.message.message.Message.__init__
Calls: 4111, Exceptions: 0, Paths: 1Back
Path 1: 4111 calls (1.0)
'R9999' (96) 'E0601' (92) 'C0103' (81) 'E1101' (80) 'E0602' (79) 'E1120' (71) 'C0116' (71) 'W0611' (69) 'W0612' (57) 'W0311' (52)
'parallel-test-check' (96) 'used-before-assignment' (92) 'invalid-name' (81) 'no-member' (80) 'undefined-variable' (79) 'no-value-for-parameter' (71) ...
MessageLocationTuple (4111)
'Missing function or method docstring' (71) 'Test From reduce_map_data' (48) 'Test From process_module, two files seen.' (48) 'Using a conditional sta...
Confidence (4111)
1def __init__(
2 self,
3 msg_id: str,
4 symbol: str,
5 location: tuple[str, str, str, str, int, int] | MessageLocationTuple,
6 msg: str,
7 confidence: Confidence | None,
8 ) -> None:
9 if not isinstance(location, MessageLocationTuple):
10 warn(
11 "In pylint 3.0, Messages will only accept a MessageLocationTuple as location parameter",
12 DeprecationWarning,
13 stacklevel=2,
14 )
15 location = MessageLocationTuple(
16 location[0],
17 location[1],
18 location[2],
19 location[3],
20 location[4],
21 location[5],
22 None,
23 None,
24 )
25
26 self.msg_id = msg_id
27 self.symbol = symbol
28 self.msg = msg
29 self.C = msg_id[0]
30 self.category = MSG_TYPES[msg_id[0]]
31 self.confidence = confidence or UNDEFINED
32 self.abspath = location.abspath
33 self.path = location.path
34 self.module = location.module
35 self.obj = location.obj
36 self.line = location.line
37 self.column = location.column
38 self.end_line = location.end_line
39 self.end_column = location.end_column