[ty] callable type of a type object is not function-like (#22226)

This commit is contained in:
Carl Meyer
2025-12-28 11:24:45 -08:00
committed by GitHub
parent d5c39d3f9f
commit 4c4e652b38
2 changed files with 33 additions and 2 deletions

View File

@@ -1222,7 +1222,7 @@ impl<'db> ClassType<'db> {
let dunder_new_bound_method = CallableType::new(
db,
dunder_new_signature.bind_self(db, Some(instance_ty)),
CallableTypeKind::FunctionLike,
CallableTypeKind::Regular,
);
if returns_non_subclass {
@@ -1292,7 +1292,7 @@ impl<'db> ClassType<'db> {
Some(CallableType::new(
db,
synthesized_dunder_init_signature,
CallableTypeKind::FunctionLike,
CallableTypeKind::Regular,
))
} else {
None