Circular Imports

I’ve been having trouble with circular imports lately. I’ve looked at a lot of sources and everything I’m seeing points to my code just being badly organized and that it would function in one file, but if I have 7000+ lines of code in a singular file it takes forever to load, so I was wondering if there’s an alternative method.

Repl link:

Just your standard
b.py
from a import c
a.py
from b import d

1 Like

found a nice stack overflow answer about this: https://stackoverflow.com/questions/7336802/how-to-avoid-circular-imports-in-python
Also, I think the reason its so slow is because of the amount of packages there are, so I personally would remove some dependencies to make the downloading go faster