Fix banned-from documentation (#6959)

Closes https://github.com/astral-sh/ruff/issues/6839.
This commit is contained in:
Charlie Marsh 2023-08-28 20:51:15 -04:00 committed by GitHub
parent 26d53c56a2
commit 3200015c06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -999,7 +999,11 @@ pub struct Flake8ImportConventionsOptions {
banned-from = ["typing"]
"#
)]
/// A list of modules that are allowed to be imported from
/// A list of modules that should not be imported from using the
/// `import ... from ...` syntax.
///
/// For example, given `banned-from = ["pandas"]`, `from pandas import DataFrame`
/// would be disallowed, while `import pandas` would be allowed.
pub banned_from: Option<FxHashSet<String>>,
}