Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
fix: Clean up all flake8-commas errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkwon94 committed Oct 22, 2021
1 parent 1800f6a commit f1e697f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ai/backend/client/cli/vfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def invitations():
msg = (
'You can now access vfolder {} ({})'.format(
invitations[selection]['vfolder_name'],
invitations[selection]['id']
invitations[selection]['id'],
)
)
print(msg)
Expand All @@ -444,7 +444,7 @@ def invitations():
msg = (
'vfolder invitation rejected: {} ({})'.format(
invitations[selection]['vfolder_name'],
invitations[selection]['id']
invitations[selection]['id'],
)
)
print(msg)
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/client/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def execute_paginated_query(
query = query.replace(
'$var_args',
', '.join(f'{key}:${key}'
for key in variables.keys())
for key in variables.keys()),
)
query = textwrap.dedent(query).strip()
var_values = {key: value[0] for key, value in variables.items()}
Expand All @@ -74,7 +74,7 @@ async def generate_paginated_results(
if api_session.get().api_version < (6, '20210815'):
if variables['filter'][0] is not None or variables['order'][0] is not None:
raise BackendAPIVersionError(
"filter and order arguments for paginated lists require v6.20210815 or later."
"filter and order arguments for paginated lists require v6.20210815 or later.",
)
# should remove to work with older managers
variables.pop('filter')
Expand Down

0 comments on commit f1e697f

Please sign in to comment.