Skip to content

Commit c1695e1

Browse files
committed
Add heap_size annotation
1 parent 9db9e8f commit c1695e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ty_python_semantic/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ impl<'db> Type<'db> {
14521452
/// P`, but not `B <: P`. Losing transitivity of subtyping is not tenable (it makes union and
14531453
/// intersection simplification dependent on the order in which elements are added), so we do
14541454
/// not use this more general definition of subtyping.
1455-
#[salsa::tracked(cycle_fn=is_subtype_of_cycle_recover, cycle_initial=is_subtype_of_cycle_initial)]
1455+
#[salsa::tracked(cycle_fn=is_subtype_of_cycle_recover, cycle_initial=is_subtype_of_cycle_initial, heap_size=ruff_memory_usage::heap_size)]
14561456
pub(crate) fn is_subtype_of(self, db: &'db dyn Db, target: Type<'db>) -> bool {
14571457
self.when_subtype_of(db, target).is_always_satisfied()
14581458
}

0 commit comments

Comments
 (0)