Skip to content

Commit

Permalink
Fix 4 more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Oct 30, 2024
1 parent a39a98c commit 8e97da6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,7 @@ fn symbol_ty_by_id<'db>(
let declarations = use_def.public_declarations(symbol);
// If the symbol is undeclared in some paths, include the inferred type in the public type.
let undeclared_ty = if declarations.may_be_undeclared() {
Some(
bindings_ty(
db,
use_def.public_bindings(symbol),
// use_def
// .public_may_be_unbound(symbol)
// .then_some(Type::Unbound),
)
.todo_unwrap_type(),
)
Some(bindings_ty(db, use_def.public_bindings(symbol)).unwrap_or_unknown())
} else {
None
};
Expand Down

0 comments on commit 8e97da6

Please sign in to comment.