What this [rule](https://docs.astral.sh/ruff/rules/useless-expression/) does is flag statements that have no effect, for example: ```python def my_function(x: int) -> int: 1 + 1 return x + 5 ``` `1 + 1` would have no effect, and Ruff should flag it so that it can be removed.
What this rule does is flag statements that have no effect, for example:
1 + 1would have no effect, and Ruff should flag it so that it can be removed.