Skip to content

Commit

Permalink
fixup! [red-knot] feat: implement integer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Slyces committed Oct 3, 2024
1 parent b74c007 commit 1372009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ impl<'db> TypeInferenceBuilder<'db> {
)
}

/// Infers the type of a binary comparison (e.g. '<left> == <right>'). See
/// Infers the type of a binary comparison (e.g. 'left == right'). See
/// `infer_compare_expression` for the higher level logic dealing with multi-comparison
/// expressions.
///
Expand Down Expand Up @@ -3146,7 +3146,7 @@ fn perform_rich_comparison<'db>(
//
// TODO: the reflected dunder actually has priority if the r.h.s. is a strict subclass of the
// l.h.s.
// TODO: __neq__ in object will call __eq__ if __neq__ is not defined
// TODO: `object.__ne__` will call `__eq__` if `__ne__` is not defined

let dunder = left.class_member(db, dunder_name);
if !dunder.is_unbound() {
Expand Down

0 comments on commit 1372009

Please sign in to comment.