mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
add conventional xml.etree.ElementTree import alias (#12455)
This commit is contained in:
parent
3898d737d8
commit
fa2f3f9f2f
3 changed files with 3 additions and 1 deletions
|
@ -1306,7 +1306,7 @@ pub struct Flake8ImportConventionsOptions {
|
|||
/// The conventional aliases for imports. These aliases can be extended by
|
||||
/// the [`extend-aliases`](#lint_flake8-import-conventions_extend-aliases) 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", "xml.etree.ElementTree": "ET"}"#,
|
||||
value_type = "dict[str, str]",
|
||||
scope = "aliases",
|
||||
example = r#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue