mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Fix typo in allow-unused-imports
documentation (#13669)
This commit is contained in:
parent
71b52b83e4
commit
42fcbef876
2 changed files with 3 additions and 3 deletions
|
@ -796,7 +796,7 @@ pub struct LintCommonOptions {
|
||||||
)]
|
)]
|
||||||
pub typing_modules: Option<Vec<String>>,
|
pub typing_modules: Option<Vec<String>>,
|
||||||
|
|
||||||
/// A list of modules which is allowed even thought they are not used
|
/// A list of modules which is allowed even though they are not used
|
||||||
/// in the code.
|
/// in the code.
|
||||||
///
|
///
|
||||||
/// This is useful when a module has a side effect when imported.
|
/// This is useful when a module has a side effect when imported.
|
||||||
|
|
4
ruff.schema.json
generated
4
ruff.schema.json
generated
|
@ -17,7 +17,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"allowed-unused-imports": {
|
"allowed-unused-imports": {
|
||||||
"description": "A list of modules which is allowed even thought they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
||||||
"deprecated": true,
|
"deprecated": true,
|
||||||
"type": [
|
"type": [
|
||||||
"array",
|
"array",
|
||||||
|
@ -1899,7 +1899,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"allowed-unused-imports": {
|
"allowed-unused-imports": {
|
||||||
"description": "A list of modules which is allowed even thought they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
"description": "A list of modules which is allowed even though they are not used in the code.\n\nThis is useful when a module has a side effect when imported.",
|
||||||
"type": [
|
"type": [
|
||||||
"array",
|
"array",
|
||||||
"null"
|
"null"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue