Method: pylint.checkers.refactoring.recommendation_checker.RecommendationChecker.visit_const
Calls: 9936, Exceptions: 0, Paths: 4Back
Path 1: 6673 calls (0.67)
Const (6673)
1@utils.only_required_for_messages("consider-using-f-string")
2 def visit_const(self, node: nodes.Const) -> None:
3 if self._py36_plus:
4 # f-strings require Python 3.6
5 if node.pytype() == "builtins.str" and not isinstance(
6 node.parent, nodes.JoinedStr
7 ):
8 self._detect_replacable_format_call(node)
Path 2: 3129 calls (0.31)
Const (3129)
1@utils.only_required_for_messages("consider-using-f-string")
2 def visit_const(self, node: nodes.Const) -> None:
3 if self._py36_plus:
4 # f-strings require Python 3.6
5 if node.pytype() == "builtins.str" and not isinstance(
6 node.parent, nodes.JoinedStr
7 ):
8 self._detect_replacable_format_call(node)
Path 3: 116 calls (0.01)
Const (116)
1@utils.only_required_for_messages("consider-using-f-string")
2 def visit_const(self, node: nodes.Const) -> None:
3 if self._py36_plus:
4 # f-strings require Python 3.6
5 if node.pytype() == "builtins.str" and not isinstance(
6 node.parent, nodes.JoinedStr
7 ):
8 self._detect_replacable_format_call(node)
Path 4: 18 calls (0.0)
Const (18)
1@utils.only_required_for_messages("consider-using-f-string")
2 def visit_const(self, node: nodes.Const) -> None:
3 if self._py36_plus:
4 # f-strings require Python 3.6
5 if node.pytype() == "builtins.str" and not isinstance(
6 node.parent, nodes.JoinedStr
7 ):
8 self._detect_replacable_format_call(node)