Method: pylint.checkers.base.basic_checker.BasicChecker.visit_comprehension
Calls: 264, Exceptions: 0, Paths: 2Back
Path 1: 193 calls (0.73)
Comprehension (193)
1@utils.only_required_for_messages(
2 "using-constant-test", "missing-parentheses-for-call-in-test"
3 )
4 def visit_comprehension(self, node: nodes.Comprehension) -> None:
5 if node.ifs:
6 for if_test in node.ifs:
7 self._check_using_constant_test(node, if_test)
Path 2: 71 calls (0.27)
Comprehension (71)
1@utils.only_required_for_messages(
2 "using-constant-test", "missing-parentheses-for-call-in-test"
3 )
4 def visit_comprehension(self, node: nodes.Comprehension) -> None:
5 if node.ifs:
6 for if_test in node.ifs:
7 self._check_using_constant_test(node, if_test)