Skip to content

Commit

Permalink
Fix typo in NameImport.qualified_name docstring (#15170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored Dec 28, 2024
1 parent 2288cc7 commit 7ea3a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_python_semantic/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7ea3a54

Please sign in to comment.