mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 12:16:43 +00:00
Fix formatting
This commit is contained in:
parent
6893d078db
commit
c09cd6c9d0
1 changed files with 3 additions and 3 deletions
|
|
@ -9072,9 +9072,9 @@ impl<'db, 'ast> TypeInferenceBuilder<'db, 'ast> {
|
|||
// the `==` and `!=` operators will fall back to `is` and `is not`, respectively.
|
||||
// refer to `<https://docs.python.org/3/reference/datamodel.html#object.__eq__>`
|
||||
if matches!(op, RichCompareOperator::Eq | RichCompareOperator::Ne)
|
||||
// This branch implements specific behavior of the `__eq__` and `__ne__` methods
|
||||
// on `object`, so it does not apply if we skip looking up attributes on `object`.
|
||||
&& !policy.mro_no_object_fallback() && matches!(e, CallDunderError::MethodNotAvailable)
|
||||
// This branch implements specific behavior of the `__eq__` and `__ne__` methods
|
||||
// on `object`, so it does not apply if we skip looking up attributes on `object`.
|
||||
&& !policy.mro_no_object_fallback() && matches!(e, CallDunderError::MethodNotAvailable)
|
||||
{
|
||||
Ok(KnownClass::Bool.to_instance(db))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue