Skip to content

Commit 07fc699

Browse files
committed
Formatted 2 files using ruff.
1 parent 16c3f58 commit 07fc699

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

examples/full-screen/simple-demos/line-prefixes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def get_line_prefix(lineno, wrap_count):
3535
if wrap_count == 0:
3636
return HTML(f'[{lineno}] <style bg="orange" fg="black">--&gt;</style> ')
3737
text = str(lineno) + "-" + "*" * (lineno // 2) + ": "
38-
return HTML(f'[{lineno}.{wrap_count}] <style bg="ansigreen" fg="ansiblack">{text}</style>')
38+
return HTML(
39+
f'[{lineno}.{wrap_count}] <style bg="ansigreen" fg="ansiblack">{text}</style>'
40+
)
41+
3942

4043
# Global wrap lines flag.
4144
wrap_lines = True

examples/prompts/swap-light-and-dark-colors.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ def bottom_toolbar():
5454
else:
5555
on = "on=false"
5656

57-
return (
58-
HTML(
59-
'Press <style bg="#222222" fg="#ff8888">[control-t]</style> '
60-
"to swap between dark/light colors. "
61-
f'<style bg="ansiblack" fg="ansiwhite">[{on}]</style>'
62-
)
57+
return HTML(
58+
'Press <style bg="#222222" fg="#ff8888">[control-t]</style> '
59+
"to swap between dark/light colors. "
60+
f'<style bg="ansiblack" fg="ansiwhite">[{on}]</style>'
6361
)
6462

6563
text = prompt(

0 commit comments

Comments
 (0)