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 e0f162f commit 2297bd3Copy full SHA for 2297bd3
mypyc/primitives/misc_ops.py
@@ -184,14 +184,22 @@
184
)
185
186
# bool(dict)
187
-dict_is_true_op = function_op(
+function_op(
188
name="builtins.bool",
189
arg_types=[true_dict_rprimitive],
190
return_type=bit_rprimitive,
191
c_function_name="CPyDict_IsTrue",
192
error_kind=ERR_FALSE,
193
194
195
+# bool(dict) custom_op
196
+dict_is_true_op = function_op(
197
+ arg_types=[true_dict_rprimitive],
198
+ return_type=bit_rprimitive,
199
+ c_function_name="CPyDict_IsTrue",
200
+ error_kind=ERR_FALSE,
201
+)
202
+
203
# bool(obj) with unboxed result
204
bool_op = function_op(
205
0 commit comments