Cause 1 of 5
A genuine cycle: A imports B at module level and B imports A at module level.
Move one of the imports inside the function that needs it. By the time that function runs, both modules are fully loaded, so the cycle disappears. It is a small change and a legitimate pattern, not a hack.
Cause 2 of 5
The import exists only for type annotations.
Put it under if TYPE_CHECKING: and quote the annotation, or add from __future__ import annotations so all annotations are strings. Type checkers still resolve it; the interpreter never performs the import.
Cause 3 of 5
Shared code is living in the wrong module.
Extract what both modules need into a third module that neither imports back from. This is usually the real fix — it removes the cycle instead of arranging the code so the cycle happens to work.
Cause 4 of 5
The from x import y form requires the name to exist at import time.
import models followed by models.User at the point of use binds late and often breaks the cycle by itself, because the module object exists before its contents are finished.
Cause 5 of 5
A local file shadows the module being imported.
A file named email.py, types.py or the same as your own package makes the import resolve back to itself. Rename it, and delete the stale __pycache__ alongside it.