With isort you can auto import things, i.e. in the pyproject.toml:
[tool.isort]
add_imports = "from __future__ import annotations"
This is a feature request for the same functionality in ruff
[tool.ruff.isort]
add_imports = "from __future__ import annotations"
With
isortyou can auto import things, i.e. in thepyproject.toml:This is a feature request for the same functionality in
ruff