Skip to content

Commit

Permalink
fix: remove redundant .format() (#16288)
Browse files Browse the repository at this point in the history
Originally this was added in 040f3ab revision at 562th line.
  • Loading branch information
nautics889 authored Oct 20, 2023
1 parent 1c218ea commit 5506cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypyc/codegen/emit.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def emit_cast(
if likely:
check = f"(likely{check})"
self.emit_arg_check(src, dest, typ, check, optional)
self.emit_lines(f" {dest} = {src};".format(dest, src), "else {")
self.emit_lines(f" {dest} = {src};", "else {")
self.emit_cast_error_handler(error, src, dest, typ, raise_exception)
self.emit_line("}")
elif is_none_rprimitive(typ):
Expand Down

0 comments on commit 5506cba

Please sign in to comment.