Open lukin0110 opened 10 months ago
Thanks for this lib, I've integrated it with ease in one of my projects! My project uses mypy and I had a small issue with importing models.
mypy
Given:
from fastapi_auth0 import Auth0User
When using mypy this will fail with error: Module "fastapi_auth0" does not explicitly export attribute "Auth0User".
error: Module "fastapi_auth0" does not explicitly export attribute "Auth0User"
With defining __all__ in __init__.py and adding models like Auth0User this mypy error will go away.
__all__
__init__.py
Auth0User
Thanks for this lib, I've integrated it with ease in one of my projects! My project uses
mypy
and I had a small issue with importing models.Given:
When using
mypy
this will fail witherror: Module "fastapi_auth0" does not explicitly export attribute "Auth0User"
.With defining
__all__
in__init__.py
and adding models likeAuth0User
thismypy
error will go away.