Skip to content

Commit a09bc0d

Browse files
committed
fix: mypy errs
1 parent 34501b1 commit a09bc0d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mypyc/primitives/dict_ops.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
)
384384

385385
# dict.copy()
386-
true_dict_copy_op = method_op(
386+
method_op(
387387
name="copy",
388388
arg_types=[true_dict_rprimitive],
389389
return_type=true_dict_rprimitive,
@@ -400,6 +400,15 @@
400400
error_kind=ERR_MAGIC,
401401
)
402402

403+
# dict.copy() custom_op
404+
true_dict_copy_op = method_op(
405+
name="copy",
406+
arg_types=[true_dict_rprimitive],
407+
return_type=true_dict_rprimitive,
408+
c_function_name="PyDict_Copy",
409+
error_kind=ERR_MAGIC,
410+
)
411+
403412
# list(dict.keys())
404413
true_dict_keys_op = custom_op(
405414
arg_types=[true_dict_rprimitive],

0 commit comments

Comments
 (0)