I have a package with a class structure similar to this.
Base class is a typical, simple parent class for a few separate hierarchies.
My package layout looks like this:
__init__.py (empty)
base.py
ab.py
cd.py
ef.py
Is it a good idea or good practice to put Base class into __init__.py instead of creating separate module just for one class? In this way I wouldn't need to import it each time in modules.
from base import Baseinto the__init__.pysuch that you can then directly importBasefrom my_package likefrom my_package import Base- jojo