dorinclisu / fastapi-auth0

FastAPI authentication and authorization using auth0.com
MIT License
230 stars 37 forks source link

Explicitly export public models/variables #38

Open lukin0110 opened 10 months ago

lukin0110 commented 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.

Given:

from fastapi_auth0 import Auth0User

When using mypy this will fail with 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.