[ty] Fix CallableTypeOf[…] for classmethods (#20345)
## Summary See https://github.com/astral-sh/ruff/pull/20338#discussion_r2337731998 ## Test Plan Regression test.
This commit is contained in:
@@ -1166,7 +1166,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
|
||||
if let Some(bound_method) = argument_type.into_bound_method() {
|
||||
binding
|
||||
.signature
|
||||
.bind_self(self.db(), Some(bound_method.self_instance(db)))
|
||||
.bind_self(self.db(), Some(bound_method.typing_self_type(db)))
|
||||
} else {
|
||||
binding.signature.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user