Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Commit 7e4d6aa

Browse files
committed
Fix flake8
1 parent 6e78446 commit 7e4d6aa

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

alma_client/endpoints/exports.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def create(
1515
payout_id: str = None,
1616
start: datetime = None,
1717
end: datetime = None,
18-
include_child_accounts = False,
19-
custom_fields = None,
18+
include_child_accounts=False,
19+
custom_fields=None,
2020
):
21-
""" Create a new export"""
21+
"""Create a new export"""
2222
data = {
2323
"type": export_type.value,
2424
"include_child_accounts": include_child_accounts,
@@ -31,15 +31,18 @@ def create(
3131

3232
if end:
3333
data["end"] = int(end.timestamp())
34-
34+
3535
if custom_fields:
3636
if isinstance(custom_fields, str):
3737
data["custom_fields"] = custom_fields
3838
else:
3939
try:
4040
data["custom_fields"] = ",".join(custom_fields)
4141
except TypeError as e:
42-
raise TypeError(f"Expected comma-separated string or an iterable yielding strings for custom_fields, got {type(custom_fields)}") from e
42+
raise TypeError(
43+
f"Expected comma-separated string or an iterable yielding "
44+
f"strings for custom_fields, got {type(custom_fields)}"
45+
) from e
4346

4447
return self.request(self.EXPORTS_PATH).set_body(data).post().expectJson(Export)
4548

0 commit comments

Comments
 (0)