---
source: crates/ruff_linter/src/rules/pyflakes/mod.rs
---
F401_7.py:30:5: F401 [*] `typing.Union` imported but unused
   |
28 | from typing import (
29 |     Mapping,  # noqa: F401
30 |     Union,
   |     ^^^^^ F401
31 | )
   |
   = help: Remove unused import: `typing.Union`

ℹ Safe fix
27 27 | # This should ignore the first error.
28 28 | from typing import (
29 29 |     Mapping,  # noqa: F401
30    |-    Union,
31    |-)
   30 |+    )
32 31 | 
33 32 | # This should ignore both errors.
34 33 | from typing import (  # noqa

F401_7.py:66:20: F401 [*] `typing.Awaitable` imported but unused
   |
65 | # This should mark F501 as unused.
66 | from typing import Awaitable, AwaitableGenerator  # noqa: F501
   |                    ^^^^^^^^^ F401
   |
   = help: Remove unused import

ℹ Safe fix
63 63 | from typing import AsyncIterable, AsyncGenerator  # noqa
64 64 | 
65 65 | # This should mark F501 as unused.
66    |-from typing import Awaitable, AwaitableGenerator  # noqa: F501

F401_7.py:66:31: F401 [*] `typing.AwaitableGenerator` imported but unused
   |
65 | # This should mark F501 as unused.
66 | from typing import Awaitable, AwaitableGenerator  # noqa: F501
   |                               ^^^^^^^^^^^^^^^^^^ F401
   |
   = help: Remove unused import

ℹ Safe fix
63 63 | from typing import AsyncIterable, AsyncGenerator  # noqa
64 64 | 
65 65 | # This should mark F501 as unused.
66    |-from typing import Awaitable, AwaitableGenerator  # noqa: F501


