__all__ = ["Bar"] def __getattr__(name): if name == "Bar": from .bar import Bar return Bar raise AttributeError(name)