Skip to content

Commit

Permalink
minor linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Apr 8, 2024
1 parent f0d7f38 commit 51b2f3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _response_hook(resp, *args, **kwargs):
resp.count = 0


def _chunk_by_size(items, max_size=0.95*MAX_BYTES):
def _chunk_by_size(items, max_size=0.95 * MAX_BYTES):
buffer, buffer_size = [], 0

for idx, item in enumerate(items):
Expand Down Expand Up @@ -1732,10 +1732,10 @@ def get_all_ids(
raise MPContribsClientError(f"`op` has to be one of {ops}")

unique_identifiers = self.get_unique_identifiers_flags()
data_id_fields = {
k: v for k, v in data_id_fields.items()
if k in unique_identifiers and isinstance(v, str)
} if data_id_fields else {}
data_id_fields = data_id_fields or {}
for k, v in data_id_fields.items():
if k in unique_identifiers and isinstance(v, str):
data_id_fields[k] = v

ret = {}
query = query or {}
Expand Down

0 comments on commit 51b2f3b

Please sign in to comment.