We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404976e commit 07f188bCopy full SHA for 07f188b
crates/ty_python_semantic/src/types/type_ordering.rs
@@ -213,7 +213,7 @@ pub(super) fn union_or_intersection_elements_ordering<'db>(
213
(Type::TypedDict(_), _) => Ordering::Less,
214
(_, Type::TypedDict(_)) => Ordering::Greater,
215
216
- (Type::NewTypeInstance(left), Type::NewTypeInstance(right)) => left.cmp(&right),
+ (Type::NewTypeInstance(left), Type::NewTypeInstance(right)) => left.cmp(right),
217
(Type::NewTypeInstance(_), _) => Ordering::Less,
218
(_, Type::NewTypeInstance(_)) => Ordering::Greater,
219
0 commit comments