How to avoid circular imports in Python? [duplicate]
Consider the following example python package where a.py and b.py depend on each other: /package __init__.py a.py b.py Types of circular import problems Circular import dependencies typically fall into two categories depending on what you’re trying to import and where you’re using it inside each module. (And whether you’re using python 2 or 3). 1. … Read more