Skip to content

Commit 20861e6

Browse files
committed
fixed W504 errors
1 parent 650d931 commit 20861e6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

awsshell/shellcomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def get_completions(self, document, complete_event):
110110
completions = self._completer.autocomplete(text_before_cursor)
111111
prompt_completions = list(self._convert_to_prompt_completions(
112112
completions, text_before_cursor))
113-
if (not prompt_completions and self._completer.last_option and
114-
len(self._completer.cmd_path) == 3):
113+
if (not prompt_completions and self._completer.last_option
114+
and len(self._completer.cmd_path) == 3):
115115
# If we couldn't complete anything from the JSON model
116116
# completer and we're on a cli option (e.g --foo), we
117117
# can ask the server side completer if it knows anything

awsshell/ui.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def create_default_layout(app, message='',
5454
replacing the prompt.
5555
"""
5656
assert isinstance(message, text_type)
57-
assert (get_bottom_toolbar_tokens is None or
58-
callable(get_bottom_toolbar_tokens))
57+
assert (get_bottom_toolbar_tokens is None
58+
or callable(get_bottom_toolbar_tokens))
5959
assert get_prompt_tokens is None or callable(get_prompt_tokens)
6060
assert not (message and get_prompt_tokens)
6161

@@ -166,13 +166,13 @@ def separator():
166166
content=CompletionsMenu(
167167
max_height=16,
168168
scroll_offset=1,
169-
extra_filter=(HasFocus(DEFAULT_BUFFER) &
170-
~display_completions_in_columns))),
169+
extra_filter=(HasFocus(DEFAULT_BUFFER)
170+
& ~display_completions_in_columns))), # noqa E501
171171
Float(xcursor=True,
172172
ycursor=True,
173173
content=MultiColumnCompletionsMenu(
174-
extra_filter=(HasFocus(DEFAULT_BUFFER) &
175-
display_completions_in_columns),
174+
extra_filter=(HasFocus(DEFAULT_BUFFER)
175+
& display_completions_in_columns),
176176
show_meta=Always()))
177177
]
178178
),

0 commit comments

Comments
 (0)