Great question — answering as the UphillTech team:
One depends on the other. Better to un-ask the question. Cyclic deps and cyclic imports can in principle be hacked together, but they're no fun, and you would just be leaving a minefield for the next maintainer. What you really want is to identify the core functionality that both need, and break it out as a third item on its own. Then the problem becomes trivial, because now you're using the machinery in the intended way. This goes for small scale import of a third module. And it goes for the larger scale of taking a dependency on a third package.
Full answer by J_H: https://stackoverflow.stackexchange.com/a/79826106 (CC BY-SA 4.0).
Need it done for your business? UphillTech.