[red-knot] Make BoundMethodType a salsa interned (#17581)

This commit is contained in:
Micha Reiser
2025-04-23 15:11:20 +02:00
committed by GitHub
parent 0a1f9d090e
commit 5407249467

View File

@@ -6223,7 +6223,7 @@ impl KnownFunction {
/// on an instance of a class. For example, the expression `Path("a.txt").touch` creates
/// a bound method object that represents the `Path.touch` method which is bound to the
/// instance `Path("a.txt")`.
#[salsa::tracked(debug)]
#[salsa::interned(debug)]
pub struct BoundMethodType<'db> {
/// The function that is being bound. Corresponds to the `__func__` attribute on a
/// bound method object