> ## 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.

# Remove Duplicate Set Key

#### Sourcery refactoring id: `remove-duplicate-set-key`

#### Description:

Remove duplicate keys when instantiating `set`s.

#### Before:

```python
addresses = {"here", *address_list1, *address_list2, *address_list1, "there", "here"}
```

#### After:

```python
addresses = {*address_list2, *address_list1, "there", "here"}
```

#### Explanation:

Set keys must be unique. Hence, repeated keys are redundant and can be removed
from its inialization to increase the conciseness and clarity of the code.
