from __future__ import annotations is unnecessary on Python 3.14 #1

Open
opened 2026-08-16 23:02:35 -07:00 by justine · 0 comments
Owner

The import was added to all eleven source and test files by habit rather than need. The ruff FA rule (flake8-future-annotations) came across with archivist's rule set and was satisfied instead of questioned.

This project has been requires-python = ">=3.14" since it was created. PEP 649 makes annotations lazy by default there, so PEP 604 unions, PEP 585 generics, and TYPE_CHECKING-only imports all work without the import.

Audit which files genuinely need it, remove it from the rest, and deselect FA so it does not demand the import everywhere again.

The import was added to all eleven source and test files by habit rather than need. The ruff `FA` rule (flake8-future-annotations) came across with archivist's rule set and was satisfied instead of questioned. This project has been `requires-python = ">=3.14"` since it was created. PEP 649 makes annotations lazy by default there, so PEP 604 unions, PEP 585 generics, and `TYPE_CHECKING`-only imports all work without the import. Audit which files genuinely need it, remove it from the rest, and deselect `FA` so it does not demand the import everywhere again.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
justine/fname#1
No description provided.