Skip to content

Commit 95f8ad9

Browse files
author
mcdax
committed
style: Fix Black formatting in models.py
1 parent b5c7eba commit 95f8ad9

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

comdirect_client/models.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def from_dict(cls, data: dict) -> "Account":
7070
accountType=EnumText.from_dict(data["accountType"]),
7171
iban=data.get("iban"),
7272
bic=data.get("bic"),
73-
creditLimit=AmountValue.from_dict(data["creditLimit"])
74-
if "creditLimit" in data
75-
else None,
73+
creditLimit=(
74+
AmountValue.from_dict(data["creditLimit"]) if "creditLimit" in data else None
75+
),
7676
)
7777

7878

@@ -150,15 +150,17 @@ def from_dict(cls, data: dict) -> "Transaction":
150150
remittanceInfo=data.get("remittanceInfo"),
151151
newTransaction=data["newTransaction"],
152152
bookingDate=booking_date,
153-
remitter=AccountInformation.from_dict(data["remitter"])
154-
if data.get("remitter")
155-
else None,
156-
debtor=AccountInformation.from_dict(data.get("debtor") or data.get("deptor", {}))
157-
if data.get("debtor") or data.get("deptor")
158-
else None,
159-
creditor=AccountInformation.from_dict(data["creditor"])
160-
if data.get("creditor")
161-
else None,
153+
remitter=(
154+
AccountInformation.from_dict(data["remitter"]) if data.get("remitter") else None
155+
),
156+
debtor=(
157+
AccountInformation.from_dict(data.get("debtor") or data.get("deptor", {}))
158+
if data.get("debtor") or data.get("deptor")
159+
else None
160+
),
161+
creditor=(
162+
AccountInformation.from_dict(data["creditor"]) if data.get("creditor") else None
163+
),
162164
endToEndReference=data.get("endToEndReference"),
163165
directDebitCreditorId=data.get("directDebitCreditorId"),
164166
directDebitMandateId=data.get("directDebitMandateId"),

0 commit comments

Comments
 (0)