mirror of https://github.com/astral-sh/ruff
[ty] Cache legacy generic context
This commit is contained in:
parent
682d29c256
commit
19881f4cc3
|
|
@ -1566,6 +1566,9 @@ impl<'db> ClassLiteral<'db> {
|
|||
})
|
||||
}
|
||||
|
||||
#[salsa::tracked(cycle_initial=generic_context_cycle_initial,
|
||||
heap_size=ruff_memory_usage::heap_size,
|
||||
)]
|
||||
pub(crate) fn legacy_generic_context(self, db: &'db dyn Db) -> Option<GenericContext<'db>> {
|
||||
self.explicit_bases(db).iter().find_map(|base| match base {
|
||||
Type::KnownInstance(
|
||||
|
|
|
|||
Loading…
Reference in New Issue