Method: pylint.checkers.stdlib.StdlibChecker._check_bad_thread_instantiation
Calls: 10, Exceptions: 0, Paths: 3Back
Path 1: 6 calls (0.6)
Call (6)
1def _check_bad_thread_instantiation(self, node: nodes.Call) -> None:
2 func_kwargs = {key.arg for key in node.keywords}
3 if "target" in func_kwargs:
4 return
5
6 if len(node.args) < 2 and (not node.kwargs or "target" not in func_kwargs):
7 self.add_message(
8 "bad-thread-instantiation", node=node, confidence=interfaces.HIGH
9 )
Path 2: 2 calls (0.2)
Call (2)
1def _check_bad_thread_instantiation(self, node: nodes.Call) -> None:
2 func_kwargs = {key.arg for key in node.keywords}
3 if "target" in func_kwargs:
4 return
5
6 if len(node.args) < 2 and (not node.kwargs or "target" not in func_kwargs):
7 self.add_message(
8 "bad-thread-instantiation", node=node, confidence=interfaces.HIGH
9 )
Path 3: 2 calls (0.2)
Call (2)
None (2)
1def _check_bad_thread_instantiation(self, node: nodes.Call) -> None:
2 func_kwargs = {key.arg for key in node.keywords}
3 if "target" in func_kwargs:
4 return
5
6 if len(node.args) < 2 and (not node.kwargs or "target" not in func_kwargs):
7 self.add_message(
8 "bad-thread-instantiation", node=node, confidence=interfaces.HIGH
9 )