Skip to content

Commit 828447b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 533501f commit 828447b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypyc/codegen/emit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
is_str_rprimitive,
4949
is_tuple_rprimitive,
5050
is_uint8_rprimitive,
51-
is_weakref_rprimitive,
5251
object_rprimitive,
5352
optional_value_type,
5453
)
@@ -705,7 +704,7 @@ def emit_cast(
705704
self.emit_lines(f" {dest} = {src};", "else {")
706705
self.emit_cast_error_handler(error, src, dest, typ, raise_exception)
707706
self.emit_line("}")
708-
elif is_object_rprimitive(typ): # or is_weakref_rprimitive(typ):
707+
elif is_object_rprimitive(typ): # or is_weakref_rprimitive(typ):
709708
if declare_dest:
710709
self.emit_line(f"PyObject *{dest};")
711710
self.emit_arg_check(src, dest, typ, "", optional)

0 commit comments

Comments
 (0)