mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
parent
4d49d5e845
commit
b7634b6ede
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
2
ruff.schema.json
generated
2
ruff.schema.json
generated
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue