Skip to content

Commit 9b69d58

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9b629a5 commit 9b69d58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/irbuild/specialize.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,9 @@ def specialize_int_to_bytes(builder: IRBuilder, expr: CallExpr, callee: RefExpr)
10211021
self_arg = builder.accept(callee.expr)
10221022
length_arg = builder.accept(expr.args[0])
10231023
byteorder_expr = expr.args[1]
1024-
if not isinstance(callee, MemberExpr) or not is_str_rprimitive(builder.node_type(byteorder_expr)):
1024+
if not isinstance(callee, MemberExpr) or not is_str_rprimitive(
1025+
builder.node_type(byteorder_expr)
1026+
):
10251027
return None
10261028
if isinstance(byteorder_expr, StrExpr):
10271029
if byteorder_expr.value == "little":

0 commit comments

Comments
 (0)