---
source: crates/ruff_linter/src/rules/flake8_future_annotations/mod.rs
---
FA102 [*] Missing `from __future__ import annotations`, but uses PEP 585 collection
 --> no_future_import_uses_union_inner.py:6:14
  |
6 | def hello(y: dict[str | None, int]) -> None:
  |              ^^^^^^^^^^^^^^^^^^^^^
7 |     z: tuple[str, str | None, str] = tuple(y)
8 |     del z
  |
help: Add `from __future__ import annotations`
  |
1 + from __future__ import annotations
2 | def main() -> None:
  |
note: This is an unsafe fix and may change runtime behavior

FA102 [*] Missing `from __future__ import annotations`, but uses PEP 604 union
 --> no_future_import_uses_union_inner.py:6:19
  |
6 | def hello(y: dict[str | None, int]) -> None:
  |                   ^^^^^^^^^^
7 |     z: tuple[str, str | None, str] = tuple(y)
8 |     del z
  |
help: Add `from __future__ import annotations`
  |
1 + from __future__ import annotations
2 | def main() -> None:
  |
note: This is an unsafe fix and may change runtime behavior
