> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Invert Any/All in Body

#### Sourcery refactoring id: `invert-any-all-body`

#### Description:

Simplifies `any` and `all` statements that can be inverted

#### Before:

```python
b = any(not a for a in things)
```

#### After:

```python
b = all(things)
```

#### Explanation:

A negation is more difficult to read than a straightforward statement. This
refactoring inverts the any or all to remove the negation.
