Skip to content

Commit 6c697df

Browse files
committed
fix: err kind
1 parent fc762c2 commit 6c697df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypyc/primitives/dict_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
list_rprimitive,
1616
object_rprimitive,
1717
true_dict_rprimitive,
18+
void_rtype,
1819
)
1920
from mypyc.primitives.registry import (
2021
ERR_NEG_INT,
@@ -368,7 +369,7 @@
368369
method_op(
369370
name="clear",
370371
arg_types=[true_dict_rprimitive],
371-
return_type=bit_rprimitive,
372+
return_type=void_rtype,
372373
c_function_name="PyDict_Clear",
373374
error_kind=ERR_NEVER,
374375
)

0 commit comments

Comments
 (0)