Skip to content

Commit 3e1c90e

Browse files
committed
Fix optional items in remove
1 parent 046dcbc commit 3e1c90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/vec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def vec_remove(builder: LowLevelIRBuilder, vec: Value, item: Value, line: int) -
459459

460460
if item_type in vec_api_by_item_type:
461461
name = f"{vec_api_by_item_type[item_type]}.remove"
462-
elif vec_type.depth() == 0 and not isinstance(item_type, RUnion):
462+
elif vec_type.depth() == 0:
463463
name = "VecTApi.remove"
464464
else:
465465
coerced_item = convert_to_t_ext_item(builder, coerced_item)

0 commit comments

Comments
 (0)