File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11""" Ellar - Python ASGI web framework for building fast, efficient, and scalable RESTful APIs and server-side applications. """
22
3- __version__ = "0.7.0 "
3+ __version__ = "0.7.1 "
Original file line number Diff line number Diff line change 1111 from ellar .common .logging import logger
1212
1313 @as_pydantic_validator (
14- "__validate_input " , schema = {"type" : "string" , "format" : "email" }
14+ "__validate_input__ " , schema = {"type" : "string" , "format" : "email" }
1515 )
16- class EmailStr (str ): # type: ignore
16+ class FallbackEmailStr (str ): # type: ignore
1717 @classmethod
18- def __validate_input (cls , __input_value : t .Any , _ : t .Any ) -> str :
18+ def __validate_input__ (cls , __input_value : t .Any , _ : t .Any ) -> str :
1919 logger .warning (
2020 "email-validator not installed, email fields will be treated as str.\n "
2121 "To install, run: pip install email-validator"
2222 )
2323 return str (__input_value )
24+
25+ EmailStr = FallbackEmailStr
You can’t perform that action at this time.
0 commit comments