Skip to content

Commit 4da62cf

Browse files
committed
comments
1 parent 312ced8 commit 4da62cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cuenca_validations/types/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def validate_profession(cls, profession: Profession) -> Profession:
554554

555555
@field_validator('govt_id')
556556
@classmethod
557-
def validate_govt_id(cls, govt_id: KYCFile):
557+
def validate_govt_id(cls, govt_id: KYCFile) -> KYCFile:
558558
if govt_id and govt_id.type in DOCS_WITH_BACK and not govt_id.uri_back:
559559
error = f'uri_back must be provided for type {govt_id.type.value}'
560560
raise ValueError(error)

tests/test_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_extra_params_are_not_allowed():
4646
assert 'Extra inputs are not permitted' in str(ex.value)
4747

4848

49-
def test_update_user_update_govt():
49+
def test_update_user_update_govt() -> None:
5050
with pytest.raises(ValueError) as ex:
5151
UserUpdateRequest(govt_id={'type': 'ine', 'uri_front': 'files/123'})
5252
assert 'uri_back must be provided for type ine' in str(ex.value)

0 commit comments

Comments
 (0)