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 Oct 20, 2023
1 parent 1c84ec6 commit 2df6618
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:

Check failure on line 12 in pycroft/lib/finance/repayment/fields.py

View workflow job for this annotation

GitHub Actions / python-lint

Error

Function is missing a type annotation for one or more arguments [no-untyped-def]
try:
return IBAN(value, validate_bban=True)
except ValueError as error:
Expand Down

0 comments on commit 2df6618

Please sign in to comment.