Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly export public models/variables #38

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

lukin0110
Copy link
Contributor

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.

@dorinclisu dorinclisu merged commit c235da8 into dorinclisu:master Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants