Skip to content

Commit 8ef874d

Browse files
committed
Add heap_size annotation
1 parent d913846 commit 8ef874d

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
@@ -1456,7 +1456,7 @@ impl<'db> Type<'db> {
14561456
/// Return true if this type is a subtype of type `target`.
14571457
///
14581458
/// See [`TypeRelation::Subtyping`] for more details.
1459-
#[salsa::tracked(cycle_fn=is_subtype_of_cycle_recover, cycle_initial=is_subtype_of_cycle_initial)]
1459+
#[salsa::tracked(cycle_fn=is_subtype_of_cycle_recover, cycle_initial=is_subtype_of_cycle_initial, heap_size=ruff_memory_usage::heap_size)]
14601460
pub(crate) fn is_subtype_of(self, db: &'db dyn Db, target: Type<'db>) -> bool {
14611461
self.when_subtype_of(db, target).is_always_satisfied()
14621462
}

0 commit comments

Comments
 (0)