Skip to content

Commit 2665035

Browse files
committed
fix: remove redundant .format()
* (fix): remove call to a `.format()` method for an f-string in the emit.py module.
1 parent 838a1d4 commit 2665035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/codegen/emit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def emit_cast(
686686
if likely:
687687
check = f"(likely{check})"
688688
self.emit_arg_check(src, dest, typ, check, optional)
689-
self.emit_lines(f" {dest} = {src};".format(dest, src), "else {")
689+
self.emit_lines(f" {dest} = {src};", "else {")
690690
self.emit_cast_error_handler(error, src, dest, typ, raise_exception)
691691
self.emit_line("}")
692692
elif is_none_rprimitive(typ):

0 commit comments

Comments
 (0)