Path 1: 36 calls (1.0)

'' (14) Const (12) Name (10)

False (28) True (8)

1def _is_constant_zero(node: str | nodes.NodeNG) -> bool:
2    # We have to check that node.value is not False because node.value == 0 is True
3    # when node.value is False
4    return (
5        isinstance(node, astroid.Const) and node.value == 0 and node.value is not False
6    )