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

# SIFR-LINT-0008: Import duplicates a module/name pair already imported in the same source file.

> Import duplicates a module/name pair already imported in the same source file.

`SIFR-LINT-0008` belongs to the **Policy linting** diagnostic family. It means: import duplicates a module/name pair already imported in the same source file.

## Why It Happens

A suppressible policy rule fired, or a suppression itself is malformed. Fix the policy issue or make the suppression exact and local.

<Info>
  Use `sifr --explain SIFR-LINT-0008` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
# sifr: ignore
def f(flag: bool):
    pass

f(True)
```

## How To Fix It

Fix the policy issue when possible. If suppression is intentional, list the exact policy rule id and keep it local.

## Fixed Code

```python theme={null}
# sifr: ignore SIFR-LINT-0006
def f(flag: bool):
    pass

f(flag=True)
```

## Details

| Field                  | Value                                                                                      |
| ---------------------- | ------------------------------------------------------------------------------------------ |
| Code                   | `SIFR-LINT-0008`                                                                           |
| Family                 | `LINT`                                                                                     |
| Severity               | Warning                                                                                    |
| Stability              | stable                                                                                     |
| Owner                  | `sifr_lint::rules::duplicate_import`                                                       |
| Representative fixture | `crates/sifr_lint/src/rules/duplicate_import.rs::duplicate_import_reports_repeated_import` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
