diff --git a/README.md b/README.md index a44916a62f..5d66c8a858 100644 --- a/README.md +++ b/README.md @@ -3034,7 +3034,7 @@ Add the specified import line to all files. ```toml [tool.ruff.isort] -add-import = ["from __future__ import annotations"] +required-imports = ["from __future__ import annotations"] ``` --- diff --git a/src/isort/settings.rs b/src/isort/settings.rs index abcfc4d320..e20b39b429 100644 --- a/src/isort/settings.rs +++ b/src/isort/settings.rs @@ -133,7 +133,7 @@ pub struct Options { default = r#"[]"#, value_type = "Vec", example = r#" - add-import = ["from __future__ import annotations"] + required-imports = ["from __future__ import annotations"] "# )] /// Add the specified import line to all files.