Path 1: 2097 calls (0.97)

Return (1613) Raise (300) Break (132) Continue (37) Call (15)

Confidence (2097)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )
            

Path 2: 55 calls (0.03)

Raise (48) Call (5) Break (1) Continue (1)

Confidence (55)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )
            

Path 3: 2 calls (0.0)

Return (2)

Confidence (2)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )
            

Path 4: 1 calls (0.0)

Return (1)

Confidence (1)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )
            

Path 5: 1 calls (0.0)

Return (1)

Confidence (1)

None (1)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )
            

Path 6: 1 calls (0.0)

Return (1)

Confidence (1)

1def _check_unreachable(
2        self,
3        node: nodes.Return | nodes.Continue | nodes.Break | nodes.Raise | nodes.Call,
4        confidence: Confidence = HIGH,
5    ) -> None:
6        """Check unreachable code."""
7        unreachable_statement = node.next_sibling()
8        if unreachable_statement is not None:
9            if (
10                isinstance(node, nodes.Return)
11                and isinstance(unreachable_statement, nodes.Expr)
12                and isinstance(unreachable_statement.value, nodes.Yield)
13            ):
14                # Don't add 'unreachable' for empty generators.
15                # Only add warning if 'yield' is followed by another node.
16                unreachable_statement = unreachable_statement.next_sibling()
17                if unreachable_statement is None:
18                    return
19            self.add_message(
20                "unreachable", node=unreachable_statement, confidence=confidence
21            )