[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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