mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
Fix banned-from documentation (#6959)
Closes https://github.com/astral-sh/ruff/issues/6839.
This commit is contained in:
parent
26d53c56a2
commit
3200015c06
2 changed files with 6 additions and 2 deletions
|
@ -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>>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue