From b7634b6ede6bc3ee9e57c9c75aded8b0d3f92c37 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 29 Aug 2023 09:39:09 -0400 Subject: [PATCH] Fix typo in `banned-from` (#6977) Oops... --- crates/ruff_workspace/src/options.rs | 2 +- ruff.schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"