mirror of https://github.com/astral-sh/ruff
Fix typo in `NameImport.qualified_name` docstring (#15170)
This commit is contained in:
parent
2288cc7478
commit
7ea3a549b2
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue