JoshData / python-email-validator

A robust email syntax and deliverability validation library for Python.
The Unlicense
1.16k stars 112 forks source link

Update __init__.py #119

Closed sandileTA closed 8 months ago

sandileTA commented 1 year ago

Fix to avoid the following error, from using fastapi[all] in requirements . SyntaxError: invalid syntax /, # prior arguments are positional-only File "/usr/local/lib/python3.7/site-packages/email_validator/validate_email.py", line 10 from .validate_email import validate_email File "/usr/local/lib/python3.7/site-packages/email_validator/init.py", line 6, in import email_validator File "/usr/local/lib/python3.7/site-packages/fastapi/openapi/models.py", line 18, in from fastapi.openapi.models import Example File "/usr/local/lib/python3.7/site-packages/fastapi/params.py", line 5, in from fastapi import params File "/usr/local/lib/python3.7/site-packages/fastapi/routing.py", line 22, in from fastapi import routing File "/usr/local/lib/python3.7/site-packages/fastapi/applications.py", line 16, in from .applications import FastAPI as FastAPI File "/usr/local/lib/python3.7/site-packages/fastapi/init.py", line 7, in from fastapi import FastAPI

JoshData commented 1 year ago

I think this is actually caused by #118. I've posted a new package. If you remove and re-install this library (or re-create your package environment), you should now automatically get the previous version 2.0.0, which is the last version supporting Python 3.7.