Skip to content

Commit 9dbc600

Browse files
Update ll_builder.py
1 parent cfac061 commit 9dbc600

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,11 +701,7 @@ def isinstance_native(self, obj: Value, class_ir: ClassIR, line: int) -> Value:
701701
even faster type comparison checks `type(obj) is typ`.
702702
"""
703703
concrete = all_concrete_classes(class_ir)
704-
if (
705-
not class_ir.is_ext_class
706-
or concrete is None
707-
or len(concrete) > FAST_ISINSTANCE_MAX_SUBCLASSES + 1
708-
):
704+
if concrete is None or len(concrete) > FAST_ISINSTANCE_MAX_SUBCLASSES + 1:
709705
return self.primitive_op(
710706
fast_isinstance_op, [obj, self.get_native_type(class_ir)], line
711707
)

0 commit comments

Comments
 (0)