Skip to content
Discussion options

You must be logged in to vote

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 import User for the sake of type checking. It will not execute any code from the .user module.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #406 on September 01, 2025 09:20.