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 cd75638 commit 8551a32Copy full SHA for 8551a32
crates/red_knot_python_semantic/src/types/instance.rs
@@ -170,7 +170,7 @@ impl<'db> ProtocolInstanceType<'db> {
170
/// TODO: consider the types of the members as well as their existence
171
pub(super) fn is_subtype_of(self, db: &'db dyn Db, other: Self) -> bool {
172
self.protocol_members(db)
173
- .is_subset(other.protocol_members(db))
+ .is_superset(other.protocol_members(db))
174
}
175
176
0 commit comments