Skip to content

Commit ef153a0

Browse files
authored
[red-knot] Remove an unnecessary branch and a confusing TODO comment (#14915)
1 parent 0c85023 commit ef153a0

File tree

1 file changed

+0
-6
lines changed
  • crates/red_knot_python_semantic/src

1 file changed

+0
-6
lines changed

crates/red_knot_python_semantic/src/types.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1660,12 +1660,6 @@ impl<'db> Type<'db> {
16601660
};
16611661
}
16621662

1663-
if matches!(self, Type::Unknown | Type::Any | Type::Todo(_)) {
1664-
// Explicit handling of `Unknown` and `Any` necessary until `type[Unknown]` and
1665-
// `type[Any]` are not defined as `Todo` anymore.
1666-
return IterationOutcome::Iterable { element_ty: self };
1667-
}
1668-
16691663
let dunder_iter_result = self.call_dunder(db, "__iter__", &[self]);
16701664
match dunder_iter_result {
16711665
CallDunderResult::CallOutcome(ref call_outcome)

0 commit comments

Comments
 (0)