We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c85023 commit ef153a0Copy full SHA for ef153a0
crates/red_knot_python_semantic/src/types.rs
@@ -1660,12 +1660,6 @@ impl<'db> Type<'db> {
1660
};
1661
}
1662
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
-
1669
let dunder_iter_result = self.call_dunder(db, "__iter__", &[self]);
1670
match dunder_iter_result {
1671
CallDunderResult::CallOutcome(ref call_outcome)
0 commit comments