Skip to content

Commit 8551a32

Browse files
committed
fix bug
1 parent cd75638 commit 8551a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/red_knot_python_semantic/src/types/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl<'db> ProtocolInstanceType<'db> {
170170
/// TODO: consider the types of the members as well as their existence
171171
pub(super) fn is_subtype_of(self, db: &'db dyn Db, other: Self) -> bool {
172172
self.protocol_members(db)
173-
.is_subset(other.protocol_members(db))
173+
.is_superset(other.protocol_members(db))
174174
}
175175

176176
/// TODO: consider the types of the members as well as their existence

0 commit comments

Comments
 (0)