I originally moved it to a « base.py » file to avoid circular imports, but yes, it can be imported in the __init__.py file too.