We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbe460 commit afacc84Copy full SHA for afacc84
1 file changed
backend/common/schema.py
@@ -14,7 +14,7 @@ class CustomEmailStr(EmailStr):
14
"""自定义邮箱类型"""
15
16
@classmethod
17
- def _validate(cls, input_value: str, /) -> str:
+ def _validate(cls, input_value: str, /) -> str | None:
18
return None if not input_value else validate_email(input_value)[1]
19
20
0 commit comments