Skip to content

Commit afacc84

Browse files
authored
Fix custom email model return type (#1145)
1 parent 3bbe460 commit afacc84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/common/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CustomEmailStr(EmailStr):
1414
"""自定义邮箱类型"""
1515

1616
@classmethod
17-
def _validate(cls, input_value: str, /) -> str:
17+
def _validate(cls, input_value: str, /) -> str | None:
1818
return None if not input_value else validate_email(input_value)[1]
1919

2020

0 commit comments

Comments
 (0)