[ty] Treat `ClassVar`-qualified `Callable`s as bound-method descriptors

This commit is contained in:
David Peter 2025-10-14 13:51:16 +02:00
parent 70378c9acd
commit 697e6ccbd3
1 changed files with 1 additions and 1 deletions

View File

@ -2032,7 +2032,7 @@ impl<'db> ClassLiteral<'db> {
// We generally treat dunder attributes with `Callable` types as function-like callables.
// See `callables_as_descriptors.md` for more details.
if name.starts_with("__") && name.ends_with("__") {
if (name.starts_with("__") && name.ends_with("__")) || member.is_class_var() {
member = member.map_type(|ty| into_function_like_callable(db, ty));
}