diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index bf23032f68..599f462639 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -1000,7 +1000,7 @@ pub struct Flake8ImportConventionsOptions { "# )] /// A list of modules that should not be imported from using the - /// `import ... from ...` syntax. + /// `from ... import ...` syntax. /// /// For example, given `banned-from = ["pandas"]`, `from pandas import DataFrame` /// would be disallowed, while `import pandas` would be allowed. diff --git a/ruff.schema.json b/ruff.schema.json index e4051de9f6..0e09a47eb9 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -881,7 +881,7 @@ } }, "banned-from": { - "description": "A list of modules that should not be imported from using the `import ... from ...` syntax.\n\nFor example, given `banned-from = [\"pandas\"]`, `from pandas import DataFrame` would be disallowed, while `import pandas` would be allowed.", + "description": "A list of modules that should not be imported from using the `from ... import ...` syntax.\n\nFor example, given `banned-from = [\"pandas\"]`, `from pandas import DataFrame` would be disallowed, while `import pandas` would be allowed.", "type": [ "array", "null"