Skip to content

Commit 8f66ee3

Browse files
committed
Review findings
1 parent 95e11e4 commit 8f66ee3

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

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

3677-
// An similar for intersection types:
3677+
// And similar for intersection types:
36783678
assert!(IntersectionBuilder::new(&db)
36793679
.add_positive(todo1)
36803680
.add_positive(todo2)

0 commit comments

Comments
 (0)