Skip to content

Commit b7c3791

Browse files
committed
remove unneeded special case
1 parent 5bebd97 commit b7c3791

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/ty_python_semantic/src/types.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4610,11 +4610,6 @@ impl<'db> Type<'db> {
46104610
fn try_iterate(self, db: &'db dyn Db) -> Result<Cow<'db, TupleSpec<'db>>, IterationError<'db>> {
46114611
match self {
46124612
Type::Tuple(tuple_type) => return Ok(Cow::Borrowed(tuple_type.tuple(db))),
4613-
Type::GenericAlias(alias) if alias.origin(db).is_tuple(db) => {
4614-
return Ok(Cow::Owned(TupleSpec::homogeneous(todo_type!(
4615-
"*tuple[] annotations"
4616-
))));
4617-
}
46184613
Type::StringLiteral(string_literal_ty) => {
46194614
// We could go further and deconstruct to an array of `StringLiteral`
46204615
// with each individual character, instead of just an array of

0 commit comments

Comments
 (0)