Method: pylint.utils.linterstats.LinterStats.get_bad_names
Calls: 7, Exceptions: 0, Paths: 2Back
Path 1: 6 calls (0.86)
'module' (3) 'function' (2) 'method' (1)
0 (6)
1def get_bad_names(
2 self,
3 node_name: Literal[
4 "argument",
5 "attr",
6 "class",
7 "class_attribute",
8 "class_const",
9 "const",
10 "inlinevar",
11 "function",
12 "method",
13 "module",
14 "variable",
15 "typevar",
16 ],
17 ) -> int:
18 """Get a bad names node count."""
19 if node_name == "class":
20 return self.bad_names.get("klass", 0)
21 return self.bad_names.get(node_name, 0)
Path 2: 1 calls (0.14)
'class' (1)
2 (1)
1def get_bad_names(
2 self,
3 node_name: Literal[
4 "argument",
5 "attr",
6 "class",
7 "class_attribute",
8 "class_const",
9 "const",
10 "inlinevar",
11 "function",
12 "method",
13 "module",
14 "variable",
15 "typevar",
16 ],
17 ) -> int:
18 """Get a bad names node count."""
19 if node_name == "class":
20 return self.bad_names.get("klass", 0)
21 return self.bad_names.get(node_name, 0)