Skip to content

Commit a51a3c1

Browse files
Update misc_ops.py
1 parent 8d7de98 commit a51a3c1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mypyc/primitives/misc_ops.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,14 @@
184184
)
185185

186186
# bool(dict)
187-
function_op(
187+
dict_is_true_op = function_op(
188188
name="builtins.bool",
189189
arg_types=[exact_dict_rprimitive],
190190
return_type=bit_rprimitive,
191191
c_function_name="CPyDict_IsTrue",
192192
error_kind=ERR_NEVER,
193193
)
194194

195-
# bool(dict) custom_op
196-
dict_is_true_op = custom_op(
197-
arg_types=[exact_dict_rprimitive],
198-
return_type=bit_rprimitive,
199-
c_function_name="CPyDict_IsTrue",
200-
error_kind=ERR_NEVER,
201-
)
202-
203195
# bool(obj) with unboxed result
204196
bool_op = function_op(
205197
name="builtins.bool",

0 commit comments

Comments
 (0)