Skip to content

Commit

Permalink
Update crates/red_knot_python_semantic/src/types.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Meyer <carl@astral.sh>
  • Loading branch information
AlexWaygood and carljm committed Jul 18, 2024
1 parent f3530e6 commit 0357af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) fn global_symbol_ty_by_name<'db>(db: &'db dyn Db, file: File, name: &
symbol_ty_by_name(db, global_scope(db, file), name)
}

/// Shorthand for `symbol_ty` that looks up a builtins symbol in a file.
/// Shorthand for `symbol_ty` that looks up a symbol in the builtins.
///
/// Returns `None` if the builtins module isn't available for some reason.
pub(crate) fn builtins_symbol_ty_by_name<'db>(db: &'db dyn Db, name: &str) -> Type<'db> {
Expand Down

0 comments on commit 0357af7

Please sign in to comment.