We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d7de98 commit a51a3c1Copy full SHA for a51a3c1
mypyc/primitives/misc_ops.py
@@ -184,22 +184,14 @@
184
)
185
186
# bool(dict)
187
-function_op(
+dict_is_true_op = function_op(
188
name="builtins.bool",
189
arg_types=[exact_dict_rprimitive],
190
return_type=bit_rprimitive,
191
c_function_name="CPyDict_IsTrue",
192
error_kind=ERR_NEVER,
193
194
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
-
203
# bool(obj) with unboxed result
204
bool_op = function_op(
205
0 commit comments