-
Hi! This is a great template project. As far as I understood this import is needed for linter, but how it works? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
its for mypy, my guess is to lint relations while blocking with noqa |
Beta Was this translation helpful? Give feedback.
-
I think it's primarily for auto-completion while avoiding circular imports. In the link you provided, |
Beta Was this translation helpful? Give feedback.
I think it's primarily for auto-completion while avoiding circular imports. In the link you provided,
from .user import User # noqa: F401
will only importUser
for the sake of type checking. It will not execute any code from the.user
module.