🐛 Fix email_validator error, generated by autoflake

This commit is contained in:
Sebastián Ramírez 2018-12-21 14:51:17 +04:00
parent b5a0c228e5
commit d5e782074f
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ from pydantic import BaseModel, Schema as PSchema
from pydantic.types import UrlStr
try:
import email_validator
assert email_validator # make autoflake ignore the unused import
from pydantic.types import EmailStr # type: ignore
except ImportError: # pragma: no cover
logging.warning(