mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Fix typo in NameImport.qualified_name
docstring (#15170)
This commit is contained in:
parent
2288cc7478
commit
7ea3a549b2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue