|
|
@ -10,9 +10,10 @@ try: |
|
|
|
from pydantic.types import EmailStr # type: ignore |
|
|
|
except ImportError: |
|
|
|
logging.warning( |
|
|
|
"email-validator not installed, email fields will be treated as str.\n" + |
|
|
|
"To install, run: pip install email-validator" |
|
|
|
"email-validator not installed, email fields will be treated as str.\n" |
|
|
|
+ "To install, run: pip install email-validator" |
|
|
|
) |
|
|
|
|
|
|
|
class EmailStr(str): # type: ignore |
|
|
|
pass |
|
|
|
|
|
|
|