Skip to content

Commit de3f90d

Browse files
committed
Review findings
1 parent a02a96a commit de3f90d

File tree

1 file changed

+3
-3
lines changed
  • crates/red_knot_python_semantic/src

1 file changed

+3
-3
lines changed

crates/red_knot_python_semantic/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn declarations_ty<'db>(
324324
}
325325
}
326326

327-
/// Meta data for `Type::Todo`, which represents a known limitation in the type system.
327+
/// Meta data for `Type::Todo`, which represents a known limitation in red-knot.
328328
#[cfg(debug_assertions)]
329329
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
330330
pub enum TodoType {
@@ -1236,7 +1236,7 @@ impl<'db> Type<'db> {
12361236
// TODO: implement tuple methods
12371237
todo_type!().into()
12381238
}
1239-
Type::Todo(_) => todo_type!().into(),
1239+
&todo @ Type::Todo(_) => todo.into(),
12401240
}
12411241
}
12421242

@@ -3666,7 +3666,7 @@ pub(crate) mod tests {
36663666
// A union of several `Todo` types collapses to a single `Todo` type:
36673667
assert!(UnionType::from_elements(&db, vec![todo1, todo2, todo3, todo4]).is_todo());
36683668

3669-
// An similar for intersection types:
3669+
// And similar for intersection types:
36703670
assert!(IntersectionBuilder::new(&db)
36713671
.add_positive(todo1)
36723672
.add_positive(todo2)

0 commit comments

Comments
 (0)