yapf: disable arithmetic predecence indication (#16749)
This commit is contained in:
parent
6cdf230a20
commit
64974a7f8f
3 changed files with 10 additions and 10 deletions
|
@ -218,7 +218,7 @@ def render_key_rect(textpad, x, y, w, h, label, style):
|
|||
|
||||
label_blank = ' ' * label_len
|
||||
label_border = box_chars['h'] * label_len
|
||||
label_middle = label + ' '*label_leftover # noqa: yapf insists there be no whitespace around *
|
||||
label_middle = label + ' ' * label_leftover
|
||||
|
||||
top_line = array('u', box_chars['tl'] + label_border + box_chars['tr'])
|
||||
lab_line = array('u', box_chars['v'] + label_middle + box_chars['v'])
|
||||
|
@ -245,10 +245,10 @@ def render_key_isoenter(textpad, x, y, w, h, label, style):
|
|||
if len(label) > label_len:
|
||||
label = label[:label_len]
|
||||
|
||||
label_blank = ' ' * (label_len-1) # noqa: yapf insists there be no whitespace around - and *
|
||||
label_blank = ' ' * (label_len - 1)
|
||||
label_border_top = box_chars['h'] * label_len
|
||||
label_border_bottom = box_chars['h'] * (label_len-1) # noqa
|
||||
label_middle = label + ' '*label_leftover # noqa
|
||||
label_border_bottom = box_chars['h'] * (label_len - 1)
|
||||
label_middle = label + ' ' * label_leftover
|
||||
|
||||
top_line = array('u', box_chars['tl'] + label_border_top + box_chars['tr'])
|
||||
lab_line = array('u', box_chars['v'] + label_middle + box_chars['v'])
|
||||
|
@ -277,10 +277,10 @@ def render_key_baenter(textpad, x, y, w, h, label, style):
|
|||
if len(label) > label_len:
|
||||
label = label[:label_len]
|
||||
|
||||
label_blank = ' ' * (label_len-3) # noqa: yapf insists there be no whitespace around - and *
|
||||
label_border_top = box_chars['h'] * (label_len-3) # noqa
|
||||
label_blank = ' ' * (label_len - 3)
|
||||
label_border_top = box_chars['h'] * (label_len - 3)
|
||||
label_border_bottom = box_chars['h'] * label_len
|
||||
label_middle = label + ' '*label_leftover # noqa
|
||||
label_middle = label + ' ' * label_leftover
|
||||
|
||||
top_line = array('u', box_chars['tl'] + label_border_top + box_chars['tr'])
|
||||
mid_line = array('u', box_chars['v'] + label_blank + box_chars['v'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue