Fix Typo for extend-aliases Option (#10978)

This commit is contained in:
Max Muoto 2024-04-16 11:23:09 -05:00 committed by GitHub
parent 1801798e85
commit 45db695c47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1307,7 +1307,7 @@ impl Flake8ImplicitStrConcatOptions {
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct Flake8ImportConventionsOptions { pub struct Flake8ImportConventionsOptions {
/// The conventional aliases for imports. These aliases can be extended by /// The conventional aliases for imports. These aliases can be extended by
/// the `extend_aliases` option. /// the `extend-aliases` option.
#[option( #[option(
default = r#"{"altair": "alt", "matplotlib": "mpl", "matplotlib.pyplot": "plt", "numpy": "np", "pandas": "pd", "seaborn": "sns", "tensorflow": "tf", "tkinter": "tk", "holoviews": "hv", "panel": "pn", "plotly.express": "px", "polars": "pl", "pyarrow": "pa"}"#, default = r#"{"altair": "alt", "matplotlib": "mpl", "matplotlib.pyplot": "plt", "numpy": "np", "pandas": "pd", "seaborn": "sns", "tensorflow": "tf", "tkinter": "tk", "holoviews": "hv", "panel": "pn", "plotly.express": "px", "polars": "pl", "pyarrow": "pa"}"#,
value_type = "dict[str, str]", value_type = "dict[str, str]",

2
ruff.schema.json generated
View file

@ -1054,7 +1054,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"aliases": { "aliases": {
"description": "The conventional aliases for imports. These aliases can be extended by the `extend_aliases` option.", "description": "The conventional aliases for imports. These aliases can be extended by the `extend-aliases` option.",
"type": [ "type": [
"object", "object",
"null" "null"