mirror of https://github.com/astral-sh/ruff
Remove assertion about valid place node to always be present in place table
This commit is contained in:
parent
2d472575f2
commit
16cafbccad
|
|
@ -8945,10 +8945,6 @@ impl<'db, 'ast> TypeInferenceBuilder<'db, 'ast> {
|
||||||
let place = if let Some(place_id) = place_table.place_id(expr) {
|
let place = if let Some(place_id) = place_table.place_id(expr) {
|
||||||
place_from_bindings(db, use_def.all_reachable_bindings(place_id)).place
|
place_from_bindings(db, use_def.all_reachable_bindings(place_id)).place
|
||||||
} else {
|
} else {
|
||||||
assert!(
|
|
||||||
self.deferred_state.in_string_annotation(),
|
|
||||||
"Expected the place table to create a place for every valid PlaceExpr node"
|
|
||||||
);
|
|
||||||
Place::Undefined
|
Place::Undefined
|
||||||
};
|
};
|
||||||
(place, None)
|
(place, None)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue