Skip to content

Commit

Permalink
fixup! Enable submission of repayment requests
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Jan 21, 2024
1 parent 7d068c7 commit 7779e55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycroft/lib/finance/repayment/fields.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Any, Mapping

from marshmallow import fields, ValidationError
from schwifty import IBAN

Expand All @@ -7,7 +9,7 @@ class IBANField(fields.Field):
to a string.
"""

def _deserialize(self, value, attr, data, **kwargs):
def _deserialize(self, value: Any, attr: str | None, data: Mapping[str, Any], **kwargs) -> IBAN:
try:
return IBAN(value, validate_bban=True)
except ValueError as error:
Expand Down

0 comments on commit 7779e55

Please sign in to comment.