Skip to content

Commit 688bf32

Browse files
committed
Use Top materializations for TypeIs special form
1 parent e4de179 commit 688bf32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/ty_python_semantic/src/types/infer/builder/type_expression.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,11 @@ impl<'db> TypeInferenceBuilder<'db, '_> {
12861286

12871287
Type::unknown()
12881288
}
1289-
_ => TypeIsType::unbound(self.db(), self.infer_type_expression(arguments_slice)),
1289+
_ => TypeIsType::unbound(
1290+
self.db(),
1291+
self.infer_type_expression(arguments_slice)
1292+
.top_materialization(self.db()),
1293+
),
12901294
},
12911295
SpecialFormType::TypeGuard => {
12921296
self.infer_type_expression(arguments_slice);

0 commit comments

Comments
 (0)