Skip to content

Commit

Permalink
Prefer [] to list()
Browse files Browse the repository at this point in the history
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
  • Loading branch information
dav3r and mcdonnnj committed Mar 11, 2022
1 parent bff2451 commit bcce0d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/awssh/autocompleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def print_completions(comps: set[str], cur: str) -> None:
cur (str): The current word.
"""
log(f"completions: {sorted(comps)}")
contains: list[str] = list()
starts: list[str] = list()
contains: list[str] = []
starts: list[str] = []
for i in sorted(comps):
if i.startswith(cur):
starts.append(i)
Expand Down

0 comments on commit bcce0d7

Please sign in to comment.