Skip to content

Commit 2297bd3

Browse files
committed
fix: mypy errs
1 parent e0f162f commit 2297bd3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mypyc/primitives/misc_ops.py

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

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

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+
195203
# bool(obj) with unboxed result
196204
bool_op = function_op(
197205
name="builtins.bool",

0 commit comments

Comments
 (0)