From 090563e4a67d83e7bd8bf2758632e7744d640003 Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 19 Dec 2024 14:08:26 +0100 Subject: [PATCH] Fix comment --- crates/red_knot_python_semantic/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/red_knot_python_semantic/src/types.rs b/crates/red_knot_python_semantic/src/types.rs index a7f5bcd225..7e923d0f38 100644 --- a/crates/red_knot_python_semantic/src/types.rs +++ b/crates/red_knot_python_semantic/src/types.rs @@ -91,7 +91,7 @@ fn symbol_by_id<'db>(db: &'db dyn Db, scope: ScopeId<'db>, symbol: ScopedSymbolI match inferred_ty { // Symbol is possibly undeclared and definitely unbound Symbol::Unbound => Symbol::Type(declared_ty, Boundness::Bound), - // Symbol is possibly undeclared and possibly bound + // Symbol is possibly undeclared and definitely bound inferred @ Symbol::Type(_, Boundness::Bound) => inferred, // Symbol is possibly undeclared and possibly unbound Symbol::Type(inferred_ty, Boundness::PossiblyUnbound) => Symbol::Type(