Method: pylint.checkers.strings.StringConstantChecker.visit_const
Calls: 11998, Exceptions: 0, Paths: 3Back
Path 1: 8719 calls (0.73)
Const (8719)
1@only_required_for_messages("redundant-u-string-prefix")
2 def visit_const(self, node: nodes.Const) -> None:
3 if node.pytype() == "builtins.str" and not isinstance(
4 node.parent, nodes.JoinedStr
5 ):
6 self._detect_u_string_prefix(node)
Path 2: 3160 calls (0.26)
Const (3160)
1@only_required_for_messages("redundant-u-string-prefix")
2 def visit_const(self, node: nodes.Const) -> None:
3 if node.pytype() == "builtins.str" and not isinstance(
4 node.parent, nodes.JoinedStr
5 ):
6 self._detect_u_string_prefix(node)
Path 3: 119 calls (0.01)
Const (119)
1@only_required_for_messages("redundant-u-string-prefix")
2 def visit_const(self, node: nodes.Const) -> None:
3 if node.pytype() == "builtins.str" and not isinstance(
4 node.parent, nodes.JoinedStr
5 ):
6 self._detect_u_string_prefix(node)