diff --git a/crates/red_knot_python_semantic/src/types/instance.rs b/crates/red_knot_python_semantic/src/types/instance.rs index a192f5b663..fc4c49810e 100644 --- a/crates/red_knot_python_semantic/src/types/instance.rs +++ b/crates/red_knot_python_semantic/src/types/instance.rs @@ -170,7 +170,7 @@ impl<'db> ProtocolInstanceType<'db> { /// TODO: consider the types of the members as well as their existence pub(super) fn is_subtype_of(self, db: &'db dyn Db, other: Self) -> bool { self.protocol_members(db) - .is_subset(other.protocol_members(db)) + .is_superset(other.protocol_members(db)) } /// TODO: consider the types of the members as well as their existence