mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
Fix typo in NameImport.qualified_name docstring (#15170)
This commit is contained in:
@@ -56,7 +56,7 @@ impl NameImport {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the [`QualifiedName`] of the imported name (e.g., given `import foo import bar as baz`, returns `["foo", "bar"]`).
|
||||
/// Returns the [`QualifiedName`] of the imported name (e.g., given `from foo import bar as baz`, returns `["foo", "bar"]`).
|
||||
fn qualified_name(&self) -> QualifiedName {
|
||||
match self {
|
||||
NameImport::Import(import) => QualifiedName::user_defined(&import.name.name),
|
||||
|
||||
Reference in New Issue
Block a user