Method: pylint.checkers.utils.is_singleton_const
Calls: 1037, Exceptions: 29, Paths: 2Back
Path 1: 644 calls (0.62)
Name (410) Attribute (82) Call (52) List (22) BinOp (18) Dict (18) Subscript (18) NamedExpr (7) Tuple (7) UnaryOp (4)
False (644)
1def is_singleton_const(node: nodes.NodeNG) -> bool:
2 return isinstance(node, nodes.Const) and any(
3 node.value is value for value in SINGLETON_VALUES
4 )
Path 2: 393 calls (0.38)
Const (393)
False (364) True (29)
GeneratorExit (29)
1def is_singleton_const(node: nodes.NodeNG) -> bool:
2 return isinstance(node, nodes.Const) and any(
3 node.value is value for value in SINGLETON_VALUES
4 )