Skip to content

Commit a7c0e65

Browse files
committed
fix: no backslashes in f-string expression part
1 parent 3decd1c commit a7c0e65

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/xulbux/console.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ def __ne__(self, other: object) -> bool:
170170
def __repr__(self) -> str:
171171
if not self:
172172
return "Args()"
173-
arg_results_reprs = (f"{key} = {'\n '.join(repr(val).splitlines())}" for key, val in self.__iter__())
174-
return f"Args(\n {',\n '.join(arg_results_reprs)}\n)"
173+
return "Args(\n " + ",\n ".join(
174+
f"{key} = " + "\n ".join(repr(val).splitlines()) \
175+
for key, val in self.__iter__()
176+
) + "\n)"
175177

176178
def __str__(self) -> str:
177179
return self.__repr__()

0 commit comments

Comments
 (0)